Long delay before showing the video/x-flv translation via RTSP
Posted: 24 Sep 2019 14:03
Hi, buddies!
I get an RTSP broadcast via http that contains video/x-flv and decodes via h264 for live broadcast. The problem is that the video is displayed with a long delay of ~7 seconds.
Why and how can I reduce the delay to at least 2-3 seconds? Help please
Code
Log (link on translation one-off)
[url]https://pastebin.com/tN994Xkp[/url]
I get an RTSP broadcast via http that contains video/x-flv and decodes via h264 for live broadcast. The problem is that the video is displayed with a long delay of ~7 seconds.
Why and how can I reduce the delay to at least 2-3 seconds? Help please
Code
Code: Select all
self.mediaPlayer!.drawable = self.view
let media = VLCMedia(url: URL(string: url)!)
media.delegate = self
let options = [
"network-caching": 300,
"clock-synchro": 1,
] as [String : Any]
media.addOptions(options)
self.mediaPlayer!.media = media
self.mediaPlayer?.libraryInstance.debugLogging = true
self.mediaPlayer!.play()
[url]https://pastebin.com/tN994Xkp[/url]