1

它显示了我的样子:

在此处输入图像描述

  let myURL = "http://example.come/package=07e9a825-7be4-4ce7-8a6ec78b"
    let videoURL = URL(string: myURL)
    let player = AVPlayer(url: videoURL!)
    let playerViewController = AVPlayerViewController()
    playerViewController.player = player
    self.present(playerViewController, animated: true) {
        playerViewController.player!.play()
    }

但是当我在浏览器中使用 URL 时,该 mp4 视频完全没问题。我想念什么?

4

1 回答 1

1

在此处输入图像描述

在 info.plist 文件中,插入行,应该可以解决问题

于 2018-10-25T13:56:33.203 回答