-
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
fix: Only add sidxMapping on successful sidx request and parse. #1099
Conversation
@@ -112,18 +113,6 @@ export const parseMasterXml = ({ masterXml, srcUrl, clientOffset, sidxMapping }) | |||
return master; | |||
}; | |||
|
|||
export const generateSidxKey = (sidxInfo) => { |
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.
This function already existed in mpd-parser, now that we export it, use that one.
src/dash-playlist-loader.js
Outdated
@@ -358,6 +347,7 @@ export default class DashPlaylistLoader extends EventTarget { | |||
|
|||
const fin = (err, request) => { | |||
if (this.requestErrored_(err, request, startingState)) { | |||
delete sidxMapping[sidxKey]; |
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.
This is the fix
Codecov Report
@@ Coverage Diff @@
## main #1099 +/- ##
==========================================
- Coverage 86.09% 86.06% -0.03%
==========================================
Files 38 38
Lines 8905 8923 +18
Branches 1996 1998 +2
==========================================
+ Hits 7667 7680 +13
- Misses 1238 1243 +5
Continue to review full report at Codecov.
|
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.
I think we can merge it with the 0.03% reduction in coverage.
Description
Requires videojs/mpd-parser#123
Fixes our
Angel One - Widevine, fmp4, webm, subs, alternate audio tracks
and i'm sure it fixes others.