I am playing a Live Streaming Video in my application using the MPMoviePlayerController. While playing, the screen sometimes goes into black , but I am able to hear the Audio. Why so ? . I tried to get the Notification when the screen goes black, but I am unlucky.
Can anyone tell me why the screen goes black for live streaming ?
How to get notified when MPMoviePlayer goes black ?
Please help me !!
The HTTP Live Streaming overview has this to say.
Basically if the network is too slow to stream the video, then an audio-only mode will be used. I can’t find a way to get notifications for alternate changes with MPMoviePlayerController. However you can register for the
MPMovieMediaTypesAvailableNotificationwhich will allow you to know whether audio/video/both are available (through themovieMediaTypesproperty).I’m not completely sure it will notify you when the streaming switches to audio only but you can always try.