Skip to content

Commit 7ccd854

Browse files
author
Bryan Yao
committed
add audio codec track
1 parent ad5b5d3 commit 7ccd854

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/controller/eme-controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@ const createClearkeyMediaKeySystemConfigurations = function (
7171
};
7272

7373
audioCodecs.forEach((codec) => {
74-
logger.log(codec);
74+
baseConfig.audioCapabilities!.push({
75+
contentType: `audio/mp4; codecs="${codec}"`
76+
});
7577
});
76-
7778
videoCodecs.forEach((codec) => {
7879
// logger.log(codec);
7980
baseConfig.videoCapabilities!.push({

0 commit comments

Comments
 (0)