Skip to content

Commit

Permalink
chore: merge from master
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Mar 8, 2023
2 parents 66ea6ca + a85f2de commit 4e99821
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
13 changes: 0 additions & 13 deletions engine/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -947,19 +947,6 @@ class Session {
m3u8 += "master" + profile.bw + ".m3u8;session=" + this._sessionId + "\n";
});
}
/*
if (this.use_demuxed_audio === true && this._audioTracks) {
for (let i = 0; i < audioGroupIds.length; i++) {
let audioGroupId = audioGroupIds[i];
for (let j = 0; j < this._audioTracks.length; j++) {
let audioTrack = this._audioTracks[j];
const codecs = audioTrack.codecs ? audioTrack.codecs : "mp4a.40.2";
m3u8 += `#EXT-X-STREAM-INF:BANDWIDTH=97000,CODECS="${codecs}",AUDIO="${audioGroupId}"\n`;
m3u8 += `master-${audioGroupId}_${audioTrack.language}.m3u8;session=${this._sessionId}\n`;
}
}
}
*/
this.produceEvent({
type: 'NOW_PLAYING',
data: {
Expand Down
11 changes: 7 additions & 4 deletions server-demux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ class RefAssetManager implements IAssetManager {
1: [
{
id: 1,
title: "Elephants Dream",
uri: "https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8",
title: "Sintel",
uri: "https://cdn.bitmovin.com/content/assets/sintel/hls/playlist.m3u8",
},
{
id: 2,
Expand All @@ -33,7 +33,7 @@ class RefAssetManager implements IAssetManager {
],
};
this.pos = {
1: 1,
1: 0,
};
}

Expand Down Expand Up @@ -90,7 +90,10 @@ class RefChannelManager implements IChannelManager {
];
}
_getAudioTracks(): AudioTracks[] {
return [{ language: "Swedish", name: "Swedish" }];
return [
{ language: "en", name: "English" },
{ language: "sp", name: "Spanish" }
];
}
}

Expand Down

0 comments on commit 4e99821

Please sign in to comment.