mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Cast updates
* Store runtimeTicks in customData for persistence on reload * Enabled seeking * Fix for pause/mute state * Fix for slider enable/disable
This commit is contained in:
parent
a463914607
commit
7495ac44b0
2 changed files with 25 additions and 14 deletions
|
@ -230,16 +230,17 @@
|
|||
volumeSlider.slider('refresh');
|
||||
|
||||
if (!isPositionSliderActive) {
|
||||
|
||||
if (state.canSeek) {
|
||||
|
||||
var pct = state.positionTicks / state.runtimeTicks;
|
||||
pct *= 100;
|
||||
|
||||
positionSlider.val(pct).prop('disabled', '');
|
||||
positionSlider.val(pct).slider("enable");
|
||||
|
||||
} else {
|
||||
|
||||
positionSlider.val(0).prop('disabled', 'disabled');
|
||||
positionSlider.val(0).slider("disable");
|
||||
}
|
||||
|
||||
positionSlider.slider('refresh');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue