mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update views
This commit is contained in:
parent
7f0e5e8cd8
commit
8c9287d505
15 changed files with 168 additions and 103 deletions
12
dashboard-ui/cordova/ios/vlcplayer.js
vendored
12
dashboard-ui/cordova/ios/vlcplayer.js
vendored
|
@ -193,8 +193,6 @@
|
|||
var duration = result.duration || 0;
|
||||
var position = result.progress || 0;
|
||||
|
||||
Logger.log('eventName: ' + eventName + '. position: ' + position);
|
||||
|
||||
var state = AudioRenderer.Current.playerState;
|
||||
|
||||
state.duration = duration;
|
||||
|
@ -202,12 +200,16 @@
|
|||
state.paused = result.state == 3 || eventName == 'paused';
|
||||
state.volume = 0;
|
||||
|
||||
if (eventName == 'positionchange') {
|
||||
onTimeUpdate();
|
||||
return;
|
||||
}
|
||||
|
||||
Logger.log('eventName: ' + eventName + '. position: ' + position);
|
||||
|
||||
if (eventName == 'playbackstop') {
|
||||
onEnded();
|
||||
}
|
||||
else if (eventName == 'positionchange') {
|
||||
onTimeUpdate();
|
||||
}
|
||||
else if (eventName == 'paused') {
|
||||
onPause();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue