Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The audio keeps stopping on MPMoviePlayerController Audio streaming

Im using MPMoviePlayerController to stream audio from a server, but after playing the audio for more than two minutes, the audio starts to stop and resume alot, im streaming more than one file one after one, so because of the interruption, some of the audio files are being skipped with those two console messages:

 Took background task assertion (38) for playback stall

 Ending background task assertion (38) for playback stall

I'm losing a lot of tracks because of this error. for the first while, i thought that was a memory issue, but the console shows that each time a loose a track, it print those messages,

like image 671
Mutawe Avatar asked Oct 03 '22 23:10

Mutawe


1 Answers

Check your network connectivity and the stream encoding.

This console output pretty much says exactly what your problem is; the stream dries out of content and could not keep up playing without interruption.

Either your network connection is unstable or the content is encoded in bandwidths that are far too high for your network connection.

For clarification; even if your local internet peering is offering high bandwidths, you should still check the bandwidths of the entire route. For example, you could try to download the streamed files via your browser for testing the throughput.

like image 59
Till Avatar answered Oct 12 '22 10:10

Till