VLCMobileKit
cannot open RTSP streaming video.
Here is the code:
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
DispatchQueue.main.async {
// Create `VLCMedia` with the URI retrieved from the camera
if let _URI = self.URI, let url = URL(string: _URI) {
let media = VLCMedia(url: url)
self.mediaPlayer.media = media
self.mediaPlayer.play()
}
}
}
It shows the error:
VLC is unable to open the MRL 'rtsp://193.159.244.134/rtsp_tunnel?profile=0&h26x=4&enableaudio=1&audio_mode=1&vcd=2'