So I’m having trouble reading how I should use the AVPlayerStatus property
I have made the @property(nonatomic, readonly) AVPlayerStatus *status; as the documentation tells me, but cant seem to find out how i use the
AVPlayerStatusUnknows..
I wanna use it in something like this
while(AVPlayerStatusUnknows)
{
//DO SOMETHING
}
can anyone help me here ?
thanks
@Patrick you cannot use the
AVPlayerStatusobjects because its not a class or a structure (or Union). Its an enumerator. we use it for checking a condition where in switch mostly (if we are creating it). The above method suggested by @Amorya is how to useAVPlayerStatus.Hope this is making sense to you.
Check the documentation.
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html
Edit:
what you are looking for is something like this. I don’t think that this will work or it might. but you will get the basic idea.
or if you just call the last 2 lines in a custom queue using GCD it will show you what you are looking for.
something like this, (not sure if this the exact syntax )