-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: vhs utils update #1036
chore: vhs utils update #1036
Conversation
d98d10b
to
b7e4478
Compare
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
c5b8dc5
to
2d752cf
Compare
@@ -1805,6 +1805,9 @@ QUnit.test('blacklists incompatible playlists by codec, without codec switching' | |||
}); | |||
|
|||
QUnit.test('does not blacklist incompatible codecs with codec switching', function(assert) { | |||
const oldIsTypeSupported = window.MediaSource.isTypeSupported; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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) => { |
There was a problem hiding this comment.
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
@@ -1940,6 +1940,9 @@ QUnit.test('blacklists fmp4 playlists by browser support', function(assert) { | |||
}); | |||
|
|||
QUnit.test('blacklists ts playlists by muxer support', function(assert) { | |||
const oldIsTypeSupported = window.MediaSource.isTypeSupported; |
There was a problem hiding this comment.
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.
Requires the following:
videojs/aes-decrypter#81videojs/m3u8-parser#118videojs/mpd-parser#115