Setting VLCKit buffer size

iOS, iPad, iPhone, tvOS specific usage questions
nmodin
New Cone
New Cone
Posts: 5
Joined: 06 Mar 2015 20:58

Setting VLCKit buffer size

Postby nmodin » 25 May 2015 20:44

Hi guys,

I'm using VLCKit for an iOS project with a video play back view for streaming remote MKV streams.

One of my beta testers have some issue with stuttering which I believe is caused by him streaming from another continent, and
possibly quite fluctuating connection speeds.

To fix this I would like to maybe increase the buffer size for the video stream, but can't figure out how to do this.

I found the different constants in VLCMedia, but couldn't find anything related to buffer sizes etc.

Any pointers or tips on how to set buffer size or something else that might be a good fix for my issues ?

Cheers,
Niklas

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Setting VLCKit buffer size

Postby fkuehne » 26 May 2015 11:33

Hello Niklas,

We don't have this option exposed directly. However, when initialising VLCLibrary or VLCMediaPlayer, give the option "--network-caching=xxxx" whereas xxxx is the buffer size in milliseconds. By default, this is 300.

Hope this helps.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

pvms78
Blank Cone
Blank Cone
Posts: 27
Joined: 27 Mar 2014 18:40
Operating System: Mac OS

Re: Setting VLCKit buffer size

Postby pvms78 » 02 Jun 2015 18:56

Hi,
I would like to adjust the buffer size on the fly. I have noticed that application increases if necessary the buffer based on network streaming.
Two questions?
Is it possible to disable this feature?
Is it possible to manually decrease and increase the network caching (pts_delay)?
Thank you


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

Who is online

Users browsing this forum: No registered users and 17 guests