Last active
August 30, 2020 12:09
-
-
Save agammahajan1/0f951d38e1c280ea4a17de909c567167 to your computer and use it in GitHub Desktop.
This file contains 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
func addPlayer(player: AVPlayer) { | |
player.currentItem?.seek(to: CMTime.zero, completionHandler: nil) | |
playerViewModel?.player = player | |
playerView.playerLayer.player = player | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment