Player
Player copied to clipboard
Using as peek VC messes with playback
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.
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()
}
}