Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed May 3, 2023
1 parent da8d3b2 commit 4c12557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
9 changes: 2 additions & 7 deletions lib/util/mime_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,8 @@ shaka.util.MimeUtils = class {
*/
static getFullType(mimeType, codecs) {
let fullMimeType = mimeType;
if (codecs) {
if (!shaka.util.MimeUtils.RAW_FORMATS.includes(mimeType)) {
fullMimeType += '; codecs="' + codecs + '"';
} else {
fullMimeType += '; codecs=""';
}
if (codecs && !shaka.util.MimeUtils.RAW_FORMATS.includes(mimeType)) {
fullMimeType += '; codecs="' + codecs + '"';
}
return fullMimeType;
}
Expand Down Expand Up @@ -99,7 +95,6 @@ shaka.util.MimeUtils = class {
if (streamKey == 'codecs' &&
shaka.util.MimeUtils.RAW_FORMATS.includes(stream.mimeType)) {
// Skip codecs for raw formats
components.push(mimeKey + '=""');
} else if (value) {
components.push(mimeKey + '="' + value + '"');
}
Expand Down
11 changes: 0 additions & 11 deletions test/player_integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,17 +592,6 @@ describe('Player', () => {
await waiter.waitUntilPlayheadReachesOrFailOnTimeout(video, 1, 10);
});

it('with containerless formats', async () => {
player = new compiledShaka.Player(video);
// eslint-disable-next-line max-len
const url = 'https://storage.googleapis.com/shaka-demo-assets/raw-hls-audio-only/manifest.m3u8';
await player.load(url, 0);

// Ensure the video plays.
video.play();
await waiter.waitUntilPlayheadReachesOrFailOnTimeout(video, 5, 15);
});

/**
* Gets the language of the active Variant.
* @return {string}
Expand Down

0 comments on commit 4c12557

Please sign in to comment.