mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update playback components
This commit is contained in:
parent
d6203e5246
commit
62590fc268
6 changed files with 140 additions and 17 deletions
|
@ -107,6 +107,24 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.currentTime = function (val) {
|
||||
|
||||
if (val != null) {
|
||||
return self.seek(val);
|
||||
}
|
||||
|
||||
var state = self.lastPlayerData || {};
|
||||
state = state.PlayState || {};
|
||||
return state.PositionTicks;
|
||||
};
|
||||
|
||||
self.duration = function () {
|
||||
|
||||
};
|
||||
|
||||
self.paused = function () {
|
||||
};
|
||||
|
||||
self.pause = function () {
|
||||
sendPlayStateCommand('Pause');
|
||||
};
|
||||
|
@ -150,6 +168,10 @@
|
|||
return [];
|
||||
};
|
||||
|
||||
self.getAudioStreamIndex = function() {
|
||||
|
||||
};
|
||||
|
||||
self.setAudioStreamIndex = function (index) {
|
||||
sendCommandByName('SetAudioStreamIndex', {
|
||||
Index: index
|
||||
|
@ -160,12 +182,36 @@
|
|||
return [];
|
||||
};
|
||||
|
||||
self.getSubtitleStreamIndex = function () {
|
||||
|
||||
};
|
||||
|
||||
self.setSubtitleStreamIndex = function (index) {
|
||||
sendCommandByName('SetSubtitleStreamIndex', {
|
||||
Index: index
|
||||
});
|
||||
};
|
||||
|
||||
self.getMaxStreamingBitrate = function () {
|
||||
|
||||
};
|
||||
|
||||
self.setMaxStreamingBitrate = function (bitrate) {
|
||||
|
||||
};
|
||||
|
||||
self.isFullscreen = function () {
|
||||
|
||||
};
|
||||
|
||||
self.toggleFullscreen = function () {
|
||||
|
||||
};
|
||||
|
||||
self.getRepeatMode = function () {
|
||||
|
||||
};
|
||||
|
||||
self.setRepeatMode = function (mode) {
|
||||
|
||||
sendCommandByName('SetRepeatMode', {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue