Page 1 of 1

Setting VLCKit buffer size

Posted: 25 May 2015 20:44
by nmodin
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

Re: Setting VLCKit buffer size

Posted: 26 May 2015 11:33
by fkuehne
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.

Re: Setting VLCKit buffer size

Posted: 02 Jun 2015 18:56
by pvms78
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