htafoya
htafoya

Reputation: 19273

IOS - Live streaming using MPMoviePlayerController losing video but not audio

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?

Upvotes: 1

Views: 906

Answers (1)

MikeCocoa
MikeCocoa

Reputation: 296

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 improve the speed of the internet connection.

Upvotes: 1

Related Questions