Answers for "how can i play video with url in a view in swift"

1

how can i play video with url in a view in swift

let url = URL(string:myURL)

player = AVPlayer(url: url!)

avpController.player = player

avpController.view.frame.size.height = videoView.frame.size.height

avpController.view.frame.size.width = videoView.frame.size.width

self.videoView.addSubview(avpController.view)
Posted by: Guest on September-01-2020

Code answers related to "how can i play video with url in a view in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language