dimanche 19 juin 2016

AVPlayer seekToTime methods stopped working on iOS 9


I have been working on a Video Player which is streaming a video asset using HLS. Once I started debugging it on iOS 9, I noticed that the scrub feature stopped working properly. However, it still works on iOS 8 devices.

Looking more into the problem I narrowed that the issue must be in the seekToTime method calls.

The scrub flow is the following:

  • when scrub starts, the video is paused using AVPlayer pause instance method
  • when the scrub ends seek the time using AVPlayer seekToTime: instance method
  • After that play the video using AVPlayer play instance method

I tried some other options for changing the current playhead such as seekToTime:completionHandler:, but still the same result.

On iOS 9 release notes (https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-9.0/), I saw that they made some changes to the AVFoundation, so I wonder if there are any known issues related to this with the iOS 9 release?


Aucun commentaire:

Enregistrer un commentaire