Skip to content

Commit

Permalink
feat: passed audiotracks to hls-v2l
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Lautakoksi committed Aug 23, 2023
1 parent 9da4839 commit 8f46ed0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engine/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8f46ed0

Please sign in to comment.