Answers for "Play Video in AVPlayer Sample Code Swift"

0

Play Video in AVPlayer Sample Code Swift

let videoURL = URL(string: "https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4")
let player = AVPlayer(url: videoURL!)
let playerViewController = AVPlayerViewController()
playerViewController.player = player
self.present(playerViewController, animated: true) {
    playerViewController.player!.play()
}
Posted by: Guest on December-18-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language