How to open VLC in fullscreen mode in swift

≯℡__Kan透↙ 提交于 2019-12-10 15:09:48

问题


Im using MobileVLCKit, here is my code:

class CameraViewController: UIViewController,VLCMediaPlayerDelegate{

  var mediaPlayer = VLCMediaPlayer()

  override func viewDidLoad() {
    super.viewDidLoad()

    mediaPlayer.delegate = self
    let url = NSURL(string: "URL HERE")
    mediaPlayer.media = VLCMedia(URL: url!)
  }
}  

I want to open VLC in fullscreen with play,pause and timer

Thanks,


回答1:


VLCKit does not include a "fullscreen" feature. You need to set the mediaPlayer's drawable to a UIView and take care of the view handling yourself.



来源:https://stackoverflow.com/questions/37445172/how-to-open-vlc-in-fullscreen-mode-in-swift

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!