mpvz icon indicating copy to clipboard operation
mpvz copied to clipboard

[feature request] include cache at progress bar

Open omeringen opened this issue 4 years ago • 3 comments

Can we have progress bar including cache info like mpv ?

Screenshot_20210723_164933

omeringen avatar Jul 23 '21 15:07 omeringen

This was more annoying to do than I thought since demuxer-cache-state can't easily watched for changes. mpvObject.demuxerCacheState['fw-bytes'] in the playback info Tab seems to update with the current bytes fine, but the embedded seekable-ranges array inside the demuxer-cache-state doesn't seem to change.

  • https://mpv.io/manual/master/#command-interface-demuxer-cache-state

I worked around the problem by just watching the demuxerCacheDuration containing the number of seconds of cache left for changes and redrew the cache overlay highlight.

2021-07-25___17-46-29 2021-07-25___17-46-52

Note to self, the "active cache range" is always the first entry in seekable-ranges.

Zren avatar Jul 25 '21 21:07 Zren

Thanks !

omeringen avatar Jul 26 '21 11:07 omeringen

Cache bar is not accurate, i am not able to skip cached area most of the time.

Screenshot_20210727_103603

omeringen avatar Jul 27 '21 07:07 omeringen