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