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

时间:2021-09-21 15:51:23

The message is the same as in this post - MobileVLCKit iOS Camera roll video "VLC is unable to open the MRL" error How to change the message or even disable it in app?

消息与此帖相同 - MobileVLCKit iOS相机视频“VLC无法打开MRL”错误如何更改消息甚至在应用程序中禁用它?

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();

    }
}

1 个解决方案

#1


0  

In Swift, it would be something like this:

在Swift中,它会是这样的:

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

#1


0  

In Swift, it would be something like this:

在Swift中,它会是这样的:

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