解决IOS - Live streaming using MPMoviePlayerController losing video but not audio
以前我也听说，好像kvm底层实现不太支持j2me来做streaming video/audio，但我不知道那人为什么这么说。 那么现在国外有一个人提出下面这种思路，并且号称在Nokia
I am Streaming a live video (.m3u8) with MPMoviePlayerViewController, however during playback sometimes the video is lost and only the Quicktime logo is displayed, however the audio still goes on.
This happens at random times, sometimes never, maybe when the internet is not as strong as it needs, but console doesn't log any errors or changes in the playback.
Is there a way to notice when this happens and to recover the video image from the streaming?ios streaming video-streaming mpmovieplayercontroller audio-streaming
asked Feb 12 '13 at 20:42 htafoya 7,376 6 35 48
This is how HTTP live streaming is designed to work. It will progressively choose higher or lower quality streams based on the strength of the internet connection. If the connection is not fast enough the "last resort" is to continue to play audio but no video. The only way to recover the video image in this case is to
the speed of the internet connection.
answered Feb 12 '13 at 21:17 MikeCocoa 261 1 7 However this only happens in live streaming, the streaming is not slow, it just stops suddenly. If I close the player and open it again (load the url again) then it starts playing smoothly both video and audio again. IF there is no way to stop it from losing connection, is there any way to know when this happens so that I can load the URL again automatically? – htafoya Feb 12 '13 at 21:24 You should be able to find more info here: developer.apple.com/library/ios/#documentation/… – MikeCocoa Feb 12 '13 at 21:47