问题描述
我正在使用 AVQueuePlayer
按顺序播放几个流。但通常 AVQueuePlayer
决定跳过下一首歌而不发送 AVPlayerItemDidPlayToEndTimeNotification
。此外,播放器中没有记录错误。使用的流媒体协议是Http Live Streaming。这种行为可能是由于流的问题吗?还有其他人遇到过吗?
I'm using AVQueuePlayer
to play a couple of streams in order. But often the AVQueuePlayer
decides to skip to the next song without sending AVPlayerItemDidPlayToEndTimeNotification
. Also no error is logged in the player. The streaming protocol used is Http Live Streaming. Could this behavoir be due to a problem with the streams? Has anyone else encountered it?
推荐答案
您是否检查过没有播放的项目的状态?由于某种原因,它可能已经失败了。
Have you checked the status of the item that didn't play? It may have failed, for some reason.
这篇关于AVQueuePlayer有时会移动到其项目队列中的下一个AVPlayerItem而不发送AVPlayerItemDidPlayToEndTimeNotification的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!