Video/Audio always paused briefly at the beginning

iOS, iPad, iPhone, tvOS specific usage questions
raoatvz
New Cone
New Cone
Posts: 6
Joined: 09 Nov 2023 04:18

Video/Audio always paused briefly at the beginning

Postby raoatvz » 09 Nov 2023 04:34

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!

raoatvz
New Cone
New Cone
Posts: 6
Joined: 09 Nov 2023 04:18

Re: Video/Audio always paused briefly at the beginning

Postby raoatvz » 12 Nov 2023 06:51

Also happening on the App Store official app.

I tried the same url (https://demo.unified-streaming.com/k8s/ ... .ism/.m3u8) with AVPlayer, no such issue.

For this slightly different url, there is no such issue either:
https://demo.unified-streaming.com/k8s/ ... .mp4/.m3u8

Tried more hls urls, many of them show issue.


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 22 guests