在做视频列表的时候,暂停播放了,但是缓冲还是会继续加载。断续播放了好几个视频,就照成了不必要的流量消耗。最好的体验应该是暂停播放的同时也暂停缓冲加载,或者播放下一个视频的时候,暂停上一个视频的缓冲加载。
Declaration
@property(assign) BOOL canUseNetworkResourcesForLiveStreamingWhilePaused;
A Boolean value that indicates whether the player item can use network resources to keep the playback state up to date while paused.
在暂停播放的时候设置为NO
_playerItem.canUseNetworkResourcesForLiveStreamingWhilePaused = NO;
有时会在一个时间内缓冲才会停止。
有所疑惑