は、どのように私は:)は、私のXcode 8プロジェクトに(URL :)xcode 8プロジェクトで「init(URL :)がinit(url :)に変更されました」というエラーを修正するにはどうすればよいですか?
エラーを初期化するために改名されました
のinit(URLを修正することができますか? これは私のコードです:
override func viewDidLoad() { super.viewDidLoad() // Load the video from the app bundle. let videoURL: NSURL = Bundle.main.url(forResource: "IMG_4628", withExtension: "mp4")! as NSURL player = AVPlayer (URL: videoURL) player?.actionAtItemEnd = .none player?.isMuted = true let playerLayer = AVPlayerLayer(player: player) playerLayer.videoGravity = AVLayerVideoGravityResizeAspectFill playerLayer.zPosition = -1 playerLayer.frame = view.frame view.layer.addSublayer(playerLayer) player?.play() //loop video
私はライン
player = AVPlayer(URL: videoURL)
でエラーを修正するにはどうすればよいですか?おかげさまで