mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
subtitle fixes
This commit is contained in:
parent
d854092d88
commit
a434bf443d
2 changed files with 14 additions and 19 deletions
|
@ -320,17 +320,7 @@
|
|||
|
||||
self.setCurrentTrackElement = function (index) {
|
||||
|
||||
var textStreams = self.currentMediaSource.MediaStreams.filter(function (s) {
|
||||
return s.DeliveryMethod == 'External';
|
||||
});
|
||||
|
||||
var newStream = textStreams.filter(function (s) {
|
||||
return s.Index == index;
|
||||
})[0];
|
||||
|
||||
var trackIndex = newStream ? textStreams.indexOf(newStream) : -1;
|
||||
|
||||
self.currentMediaRenderer.setCurrentTrackElement(trackIndex);
|
||||
self.currentMediaRenderer.setCurrentTrackElement(index);
|
||||
};
|
||||
|
||||
self.updateTextStreamUrls = function (startPositionTicks) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue