gpt4 book ai didi

swift - swift 。 MobileVLCKit“VLC无法打开MRL”错误。如何更改消息甚至禁用它?

转载 作者:行者123 更新时间:2023-11-30 12:02:42 26 4
gpt4 key购买 nike

该消息与这篇文章相同-
 MobileVLCKit iOS Camera roll video "VLC is unable to open the MRL" error
如何在应用程序中更改消息甚至禁用消息?

class PlayerViewController: UIViewController,VLCMediaPlayerDelegate{

@IBOutlet var ActivityIndicator: UIActivityIndicatorView!
@IBOutlet var movieView: UIView!

var mediaPlayer = VLCMediaPlayer()
var webcamURL: String!
var previousDeviceOrientation: UIDeviceOrientation = UIDevice.current.orientation

override func viewDidLoad() {
super.viewDidLoad()

let url = URL(string: webcamURL)
let media = VLCMedia(url: url)
mediaPlayer.media = media
mediaPlayer.drawable = movieView
mediaPlayer.play()
movieView.frame = UIScreen.screens[0].bounds

let gesture = UITapGestureRecognizer(target: self, action: #selector(PlayerViewController.movieViewTapped(_:)))
movieView.addGestureRecognizer(gesture)

ActivityIndicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyle.white;
ActivityIndicator.center = view.center;
ActivityIndicator.startAnimating();

}
}

最佳答案

在Swift中,将是这样的:

    let options = ["--extrainf="]
let mediaPlayer = VLCMediaPlayer(options: options)

关于swift - swift 。 MobileVLCKit“VLC无法打开MRL”错误。如何更改消息甚至禁用它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47022603/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com