Skip to content

chore: vhs utils update#1036

Merged
brandonocasey merged 10 commits into
mainfrom
chore/vhs-utils-update
Jan 14, 2021
Merged

chore: vhs utils update#1036
brandonocasey merged 10 commits into
mainfrom
chore/vhs-utils-update

Conversation

@brandonocasey

@brandonocasey brandonocasey commented Dec 16, 2020

Copy link
Copy Markdown
Contributor

@brandonocasey brandonocasey changed the base branch from chore/better-worker-build to main December 16, 2020 16:46
gkatsev
gkatsev previously approved these changes Dec 16, 2020

@gkatsev gkatsev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well, just needs to wait for the vhs-utils update.

Comment thread src/util/codecs.js Outdated
gkatsev
gkatsev previously approved these changes Jan 11, 2021

@gkatsev gkatsev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a test and it's working. Confirmed that with this change we will properly pick up missing codecs and be able to play them even if they are partially missing from the manifest.

gkatsev
gkatsev previously approved these changes Jan 11, 2021
gesinger
gesinger previously approved these changes Jan 11, 2021
@brandonocasey brandonocasey dismissed stale reviews from gesinger and gkatsev via 549cb71 January 12, 2021 16:43
});

QUnit.test('does not blacklist incompatible codecs with codec switching', function(assert) {
const oldIsTypeSupported = window.MediaSource.isTypeSupported;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

edge support ac-3, we need to mock that it doesn't support it for this test.

}

if (blacklistReasons.length) {
variant.excludeUntil = Infinity;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved the exclude down here so we don't do it in every if.

const videoDetails = codecs.video && parseCodecs(codecs.video)[0] || null;
const audioDetails = codecs.audio && parseCodecs(codecs.audio)[0] || null;

Object.keys(playlists).forEach((key) => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loop through all playlists for sure

});

QUnit.test('blacklists ts playlists by muxer support', function(assert) {
const oldIsTypeSupported = window.MediaSource.isTypeSupported;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again with browser codec support needing to be overridden.

@brandonocasey brandonocasey merged commit b072c93 into main Jan 14, 2021
@brandonocasey brandonocasey deleted the chore/vhs-utils-update branch January 14, 2021 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants