mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Video player updates
* All buttons shown all the time * Added time feedback when dragging position slider
This commit is contained in:
parent
bb54d12ca8
commit
47d87ccfe8
5 changed files with 132 additions and 95 deletions
|
@ -9,10 +9,10 @@
|
|||
var currentProgressInterval;
|
||||
var currentItem;
|
||||
var currentMediaSource;
|
||||
var curentDurationTicks;
|
||||
var canClientSeek;
|
||||
var currentPlaylistIndex = 0;
|
||||
|
||||
self.curentDurationTicks = null;
|
||||
self.currentTimeElement = null;
|
||||
self.unmuteButton = null;
|
||||
self.muteButton = null;
|
||||
|
@ -200,12 +200,12 @@
|
|||
|
||||
var timeText = Dashboard.getDisplayTime(ticks);
|
||||
|
||||
if (curentDurationTicks) {
|
||||
if (self.curentDurationTicks) {
|
||||
|
||||
timeText += " / " + Dashboard.getDisplayTime(curentDurationTicks);
|
||||
timeText += " / " + Dashboard.getDisplayTime(self.curentDurationTicks);
|
||||
|
||||
if (updateSlider) {
|
||||
var percent = ticks / curentDurationTicks;
|
||||
var percent = ticks / self.curentDurationTicks;
|
||||
percent *= 100;
|
||||
|
||||
self.positionSlider.val(percent).slider('enable').slider('refresh');
|
||||
|
@ -446,7 +446,7 @@
|
|||
|
||||
videoPlayer(self, item, currentMediaSource, startPosition, user);
|
||||
mediaElement = self.initVideoPlayer();
|
||||
curentDurationTicks = currentMediaSource.RunTimeTicks;
|
||||
self.curentDurationTicks = currentMediaSource.RunTimeTicks;
|
||||
|
||||
mediaControls = $("#videoControls");
|
||||
|
||||
|
@ -458,7 +458,7 @@
|
|||
mediaElement = playAudio(item, currentMediaSource, startPosition);
|
||||
mediaControls.show();
|
||||
|
||||
curentDurationTicks = currentMediaSource.RunTimeTicks;
|
||||
self.curentDurationTicks = currentMediaSource.RunTimeTicks;
|
||||
|
||||
} else {
|
||||
throw new Error("Unrecognized media type");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue