Created
July 12, 2021 17:50
-
-
Save atulkhatri/a066767ec9bce82bb1934fd528625879 to your computer and use it in GitHub Desktop.
tvOS Bootcamp Player 5
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
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