1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixed subtitle downloading

This commit is contained in:
Luke Pulverenti 2014-05-08 01:04:39 -04:00
parent 2af68415eb
commit b39a9e4797
5 changed files with 219 additions and 21 deletions

View file

@ -147,6 +147,14 @@
}
};
self.setAudioStreamIndex = function (index) {
self.changeStream(self.getCurrentTicks(), { AudioStreamIndex: index });
};
self.setSubtitleStreamIndex = function (index) {
self.changeStream(self.getCurrentTicks(), { SubtitleStreamIndex: index });
};
$(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', function (e) {
var videoControls = $('#videoControls');
@ -209,7 +217,7 @@
if (!$(this).hasClass('selectedMediaFlyoutOption')) {
var index = parseInt(this.getAttribute('data-index'));
self.changeStream(self.getCurrentTicks(), { AudioStreamIndex: index });
self.setAudioStreamIndex(index);
}
hideFlyout($('#video-audioTracksFlyout'));
@ -220,7 +228,7 @@
if (!$(this).hasClass('selectedMediaFlyoutOption')) {
var index = parseInt(this.getAttribute('data-index'));
self.changeStream(self.getCurrentTicks(), { SubtitleStreamIndex: index });
self.setSubtitleStreamIndex(index);
}
hideFlyout($('#video-subtitleFlyout'));