diff --git a/engine/session.js b/engine/session.js index 265d92fb..012aaacb 100644 --- a/engine/session.js +++ b/engine/session.js @@ -1329,6 +1329,7 @@ class Session { debug(`[${this._sessionId}]: got first VOD uri=${vodResponse.uri}:${vodResponse.offset || 0}`); const hlsOpts = { sequenceAlwaysContainNewSegments: this.alwaysNewSegments, forcedDemuxMode: this.use_demuxed_audio, + allowedAudioLanguages: this._audioTracks, dummySubtitleEndpoint: this.dummySubtitleEndpoint, subtitleSliceEndpoint: this.subtitleSliceEndpoint, shouldContainSubtitles: this.use_vtt_subtitles, @@ -1506,7 +1507,8 @@ class Session { if (!vodResponse.type) { debug(`[${this._sessionId}]: got next VOD uri=${vodResponse.uri}:${vodResponse.offset}`); const hlsOpts = { sequenceAlwaysContainNewSegments: this.alwaysNewSegments, - forcedDemuxMode: this.use_demuxed_audio, + forcedDemuxMode: this.use_demuxed_audio, + allowedAudioLanguages: this._audioTracks, dummySubtitleEndpoint: this.dummySubtitleEndpoint, subtitleSliceEndpoint: this.subtitleSliceEndpoint, shouldContainSubtitles: this.use_vtt_subtitles, @@ -1756,6 +1758,7 @@ class Session { .then(() => { const hlsOpts = { sequenceAlwaysContainNewSegments: this.alwaysNewSegments, forcedDemuxMode: this.use_demuxed_audio, + allowedAudioLanguages: this._audioTracks, dummySubtitleEndpoint: this.dummySubtitleEndpoint, subtitleSliceEndpoint: this.subtitleSliceEndpoint, shouldContainSubtitles: this.use_vtt_subtitles, @@ -1860,7 +1863,8 @@ class Session { .then(() => { const hlsOpts = { sequenceAlwaysContainNewSegments: this.alwaysNewSegments, - forcedDemuxMode: this.use_demuxed_audio, + forcedDemuxMode: this.use_demuxed_audio, + allowedAudioLanguages: this._audioTracks, dummySubtitleEndpoint: this.dummySubtitleEndpoint, subtitleSliceEndpoint: this.subtitleSliceEndpoint, shouldContainSubtitles: this.use_vtt_subtitles,