-
-
Save kjartanvest/44ea9545ec9dc40996c62d18ea2a31df 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
// Configure AVPlayerViewController with an AVPlayer | |
let avPlayerViewController = AVPlayerViewController() | |
avPlayerViewController.player = AVPlayer(url: videoUrl!) | |
// Present the avplayer view controller | |
self.present(avPlayerViewController, animated: true) { | |
avPlayerViewController.player?.play() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment