Player icon indicating copy to clipboard operation
Player copied to clipboard

Using as peek VC messes with playback

Open individual11 opened this issue 9 years ago • 1 comments

Still investigating, but if use the player as VC for a peek, the playback is sporadic. Sometimes it plays super fast all the way through, then the next time it will play at normal speed but choppy. I'm still looking further into it, because I LOVE the player and it works perfectly everywhere else I'm using.

individual11 avatar May 23 '16 02:05 individual11

this code is firing several times, but only in Peek

case (.Some(PlayerKeepUp), &PlayerItemObserverContext):
            if let item = self.playerItem {
                self.bufferingState = .Ready
                self.playerDelegate?.playerBufferingStateDidChange?(self)

                if item.playbackLikelyToKeepUp && self.playbackState == .Playing {
                    print("WEIRD ONE")
                    //self.playFromCurrentTime()
                }
            }

individual11 avatar May 24 '16 01:05 individual11