I am using MobileVLCKit for iOS.
Every time I tried to play some HLS, the player starts but will pause briefly after 1 or 2 seconds. It is a glitch.
Swift code is very simple:
func startStream(){
guard let url = URL(string: "https://demo.unified-streaming.com/k8s/ ... .ism/.m3u8") else {return}
videoPlayer.drawable = vlcView
videoPlayer.media = VLCMedia(url: url)
videoPlayer.media!.addOption( "--network-caching=10000")
videoPlayer.media!.addOption( "--prefetch-buffer-size=100000")
tblPresets.delegate = self
tblPresets.dataSource = self
videoPlayer.delegate = self
videoPlayer.play()
}
From console output, it seems it happens when child m3u8 is read:
VLCMediaPlayerDelegate: BUFFERING
VLCMediaPlayerDelegate: ELEMENTARY STREAM ADDED
VLCMediaPlayerDelegate: ELEMENTARY STREAM ADDED
Is this a known issue or do I miss something?
Thx!