mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
replace arrow functions by function expresions
This commit is contained in:
parent
415ec9e91b
commit
0a59b836c0
@ -565,7 +565,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
var mediaStreamTextTracks = getMediaStreamTextTracks(self._currentPlayOptions.mediaSource);
|
var mediaStreamTextTracks = getMediaStreamTextTracks(self._currentPlayOptions.mediaSource);
|
||||||
|
|
||||||
Array.from(videoElement.textTracks)
|
Array.from(videoElement.textTracks)
|
||||||
.filter((trackElement) => {
|
.filter(function(trackElement) {
|
||||||
if (customTrackIndex === -1 ) {
|
if (customTrackIndex === -1 ) {
|
||||||
// get showing .vtt textTacks
|
// get showing .vtt textTacks
|
||||||
return trackElement.mode === 'showing';
|
return trackElement.mode === 'showing';
|
||||||
@ -574,9 +574,9 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
return ("textTrack" + customTrackIndex) === trackElement.id;
|
return ("textTrack" + customTrackIndex) === trackElement.id;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.forEach(trackElement => {
|
.forEach(function(trackElement) {
|
||||||
|
|
||||||
var track = mediaStreamTextTracks.filter((stream) => {
|
var track = mediaStreamTextTracks.filter(function(stream) {
|
||||||
return ("textTrack" + stream.Index) === trackElement.id;
|
return ("textTrack" + stream.Index) === trackElement.id;
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
@ -609,7 +609,7 @@ define(['browser', 'require', 'events', 'apphost', 'loading', 'dom', 'playbackMa
|
|||||||
|
|
||||||
if(currentTrack.cues) {
|
if(currentTrack.cues) {
|
||||||
Array.from(currentTrack.cues)
|
Array.from(currentTrack.cues)
|
||||||
.forEach((cue) => {
|
.forEach(function(cue) {
|
||||||
cue.startTime -= offsetValue;
|
cue.startTime -= offsetValue;
|
||||||
cue.endTime -= offsetValue;
|
cue.endTime -= offsetValue;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user