Last active
February 25, 2019 05:32
-
-
Save pgpt10/2bd1560098b1c5eeb1955eb7fc5a7a1e 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
let controller = AVPlayerViewController() | |
controller.player = player //AVPlayer object | |
self.present(controller, animated: true) {[weak self] in | |
DispatchQueue.main.async { | |
player?.play() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment