AVPlayer cannot resume upon Wifi drops in iOS 8

半城伤御伤魂 提交于 2019-11-30 08:34:46

问题


I'm using AVPlayer to play streaming video. When Wifi drops and later enables, I see that AVPlayer cannot resume, no matter how many times I call AVPlayer play, and its currentItem 's duration is NaN, seekableTimeRanges is empty.

This is not the case for iOS 7, it resumes and plays well. The workaround I can think of is to restart the player.

How to deal with this?

来源:https://stackoverflow.com/questions/28059019/avplayer-cannot-resume-upon-wifi-drops-in-ios-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!