1
0
Fork 0
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:
Luke Pulverenti 2017-01-05 15:18:09 -05:00
parent d6203e5246
commit 62590fc268
6 changed files with 140 additions and 17 deletions

View file

@ -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', {