Skip to content

Instantly share code, notes, and snippets.

@agammahajan1
Last active August 30, 2020 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agammahajan1/0f951d38e1c280ea4a17de909c567167 to your computer and use it in GitHub Desktop.
Save agammahajan1/0f951d38e1c280ea4a17de909c567167 to your computer and use it in GitHub Desktop.
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