3
我正在使用AVPlayer播放視頻。我使用AVPlayer pause
來暫停播放器。但與Charles一起觀察顯示,播放器處於暫停狀態時,流段仍在下載。如何強制AVPlayer在暫停狀態時暫停緩衝?
我發現AVPlayer buffering, pausing notification, and poster frame但他們說這是
AVPlayer將緩衝視頻在若干情況下,沒有克利 記錄
這是正常的行爲呢?玩家暫停時如何緩衝暫停?
在[iOS 9]中籤出'canUseNetworkResourcesForLiveStreamingWhilePaused'(https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVPlayerItem_Class/index.html#//apple_ref/occ/cl/AVPlayerItem )。 – Anurag
根據文檔,canUseNetworkResourcesForLiveStreamingWhilePaused應該沒問題,但在我的情況下不起作用。 – DixieFlatline