我想在我的项目中使用VLCMediaPlayer直播
我正在使用pod 'MobileVLCKit-prod'
这是我的代码
class CameraViewController: UIViewController,VLCMediaPlayerDelegate{
var mediaPlayer = VLCMediaPlayer()
override func viewDidLoad() {
super.viewDidLoad()
mediaPlayer.delegate = self
mediaPlayer.drawable = playerView
let url = NSURL(string: "URL HERE")
mediaPlayer.media = VLCMedia(URL: url!)
mediaPlayer.play()
}
}
当我运行我的应用程序时,我得到了ffmpeg打开编解码器错误: