• A story about an AVPlayer that was not loading video beyond a certain point when receiving nginx-rmtp streams.

  • Upon further investigation, it was discovered that when playerItem.currentTime reached the hls_playlist_length value in nginx.conf, the video would stop.

  • Since AVPlayer starts playing a little before hls_playlist_length, it would stop every time after a certain amount of time.

  • In other words, AVPlayer did not expect the stream to be continuous.

  • As a temporary solution, the hls_playlist_length was set to a very large number, but a more proper solution is desired.

#nginx-rmtp#nginx#hls