I found the following code on the Internet and copied and pasted it to check it, however it does not work.
import Foundation import UIKit import AVKit class Video1: UIViewController { var playerViewController = AVPlayerViewController() var playView = AVPlayer()
I imported the appropriate structures as shown, so it should work, but as you can see, it fails.

With little programming experience in iOS, I am at a loss. I would appreciate it if someone would give me a solution to this, or at least point me in the right direction.
I will be happy to provide additional information upon request.
source share