Search code examples
c++cachingvlcrtsplive555

Which functions of Live555 is used in vlc for 'network-caching' option


I know vlc uses live555 for rtsp streaming. There is an option in Open Media dialog in vlc when opening a network stream which tells vlc to buffer stream for some seconds before starting to play it. The option is 'network-caching' in milliseconds. I want to know which functions in live555 is used in vlc to have this feature? I have tried increaseReceiveBufferTo(...) and ReorderingPacketBuffer::setThresholdTime(...) but they don't do this behavior.

vlc network caching option

Thanks


Solution

  • This parameter is not directly used in the live555 or rtsp module. Looking at the source code shows that the value is used to adjust the presentation timestamps. Since Live555 simply gives you out packets with the timestamps as they were on the RTP level, you have to implement it yourself.