mpv-progressbar icon indicating copy to clipboard operation
mpv-progressbar copied to clipboard

Cache for streams

Open FichteFoll opened this issue 5 years ago • 2 comments

With the addition of the cache bar (and maybe some time earlier because I probably haven't updated in a while before that), I no longer see the progress bar for streams (by default).

With the addition of demuer_cache_state or however else the cache being visualized is read, it would be nice if you could see for running streams how much you can seek ahead and behind in the cache, however.

Since that is only interesting when you want to seek, it doesn't need to be active all the time (same as currently), but it would be nice if some sort of visualization was shown on hover. And the exact time remaining in the cache (ahead).

FichteFoll avatar Dec 06 '18 16:12 FichteFoll

Ironically, the current behavior was implemented as a result of #14, which you filed.

The main issue with displaying anything during a stream of unknown duration is that there isn't a reference to scale to. There are two display options that I can think of.

One option is to scale the cache bar to the current playback position, which I believe is usually accurate even when the duration is unknown. Scaling it in this manner would result in the cache area always being in the right-hand corner of the window and potentially becoming very small for long streams (e.g. 12+hours).

The other option is to scale the currently seekable portion of the cache to the width of the window itself, which immediately reduces its visual usefulness as a display of the amount cached because e.g. 5 seconds of cache and 50 minutes of cache could appear to be visually identical.

Of these two options I think the former is more useful and only breaks down in what I assume are edge cases, though I'm not particularly sold on either of them. Are there other options for scaling/display of this that I haven't considered?

torque avatar Dec 06 '18 21:12 torque

I know I filed the issue, but the situation was different back then. In the current situation, I do believe this to be useful, and yes, I also believe there are only these two options for scaling, or at least I can only think of those. The former sounds better to be as well.

You didn't mention what you think about setting the inactive bar width to 0 since it hardly has anything to tell for something with unknown length.

FichteFoll avatar Dec 08 '18 19:12 FichteFoll