mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-28 12:58:48 +00:00
return default values for subtitles props if no video is loaded
This commit is contained in:
parent
72d621bb89
commit
0ba91f7ac1
1 changed files with 8 additions and 0 deletions
|
|
@ -47,9 +47,17 @@ var HTMLVideo = function(container) {
|
|||
return video.muted ? 0 : Math.floor(video.volume * 100);
|
||||
};
|
||||
function getSubtitleTracks() {
|
||||
if (!loaded) {
|
||||
return [];
|
||||
}
|
||||
|
||||
return subtitleTracks.slice();
|
||||
};
|
||||
function getSelectedSubtitleTrack() {
|
||||
if (!loaded) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return selectedSubtitleTrack;
|
||||
};
|
||||
function onEnded() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue