1
0
Fork 0
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:
Tim Hobbs 2014-04-18 12:59:06 -07:00
parent a463914607
commit 7495ac44b0
2 changed files with 25 additions and 14 deletions

View file

@ -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');