Skip to content

Instantly share code, notes, and snippets.

@atulkhatri
Created July 12, 2021 17:50
Show Gist options
  • Save atulkhatri/a066767ec9bce82bb1934fd528625879 to your computer and use it in GitHub Desktop.
Save atulkhatri/a066767ec9bce82bb1934fd528625879 to your computer and use it in GitHub Desktop.
tvOS Bootcamp Player 5
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
player?.pause()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
player?.play()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment