Open swimfish09 opened 1 year ago
Can you describe better the issue? It was not happening with the previous versions and started with 3.5.8? Is it a live rtsp stream?
It is not a issue rather than a feature. Yes it is a live rtsp stream but can set speed of it. https://stackoverflow.com/questions/64818701/rtsp-audio-stream-playback-speed-with-vlcj
For the downloader there is no point to set the speed as it will try to download it as fast as possible. I guess you mean the to set a download limit (KB/s)?
Or you mean to set the speed slower for the playback (because faster it doesn't really make sense on live steam)?
Yes, limit download speed.
@swimfish09 You can implement this at the application level. I'm not sure if it should be in the library. You could have many downloaders and set the limit based on all instead of each of them. You can do this by checking the demuxer's TotalBytes each second (sum all downloaders bytes) and if you pass the limit you pause them. Let me know what you think.
ok, i aleady have tried with it.
TotalBytes = DecCtx.VideoDemuxer.TotalBytes + DecCtx.AudioDemuxer.TotalBytes;
Is this correct?
Yes
Now downloader will download rtsp playback stream with 1x speed.