Created
May 3, 2021 00:12
-
-
Save mhijack/b17d18f883b327218be9e8b71882b634 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
periodicTimeObserver = player.addPeriodicTimeObserver(forInterval: CMTime(value: CMTimeValue(1), timescale: 2), queue: DispatchQueue.main) {[weak self] (progressTime) in | |
print("periodic time: \(CMTimeGetSeconds(progressTime))") | |
self?.updatePlaybackProgress(progressTime: progressTime) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment