Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mhijack/424bd578240e78d6ed2b767a8f118e63 to your computer and use it in GitHub Desktop.
Save mhijack/424bd578240e78d6ed2b767a8f118e63 to your computer and use it in GitHub Desktop.
if !self.playbackManager.isScrubbingInProgress {
/// Do not let scrubbing interfere with periodic observer
self.controlsView.setProgress(progress: Float(self.playbackManager.currentPlaybackProgress))
self.controlsView.updateCurrentTime(label: PlayerPlaybackTimeFormatter.getCurrentTimeFormatted(player: self.playbackManager.player)) /// update current time with playback current time
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment