问题
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