replace arrow functions by function expresions

This commit is contained in:
redSpoutnik 2019-04-13 09:17:03 +02:00
parent 415ec9e91b
commit 0a59b836c0

View File

@ -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;
}); });