-
Notifications
You must be signed in to change notification settings - Fork 54
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
Wrong resolvedUri #117
Comments
I think it's because we only expect BaseURL elements to be children the MPD element rather than inside a Period. |
I got the same issue on this website. My research result is that it's a regex issue here: https://github.com/videojs/mpd-parser/blob/main/src/segment/segmentTemplate.js#L6 const identifierPattern = /\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g; In this example the regex is const identifierPattern = /\$([A-z]*)(?:(%0)([0-9]+)([d,x]))?\$/g; another issue is the number need to be set as hex format in function https://github.com/videojs/mpd-parser/blob/main/src/segment/segmentTemplate.js#L44 here is my solution: if (typeof values[identifier] === 'undefined') { let value = '' + values[identifier]; if (identifier === 'RepresentationID') { if (!format) { if(base ==='x') { if (value.length >= width) { return |
Hi, I'm trying to parse SlingTV manifest, however the
uri
andresolvedUri
in the returned parser manifest seems to be wrong.{ uri: 'audio/stereo/192/$Number%08x$.m4s', timeline: 1, duration: 2.048, resolvedUri: 'http://p-cdn1-c-cg14-linear-cbd46b77.movetv.com/15807/live/CNNHD-DYN/6986bd324cdc11ebb62f0025b5472115/audio/stereo/192/$Number%08x$.m4s', map: [Object], number: 2877 }
The real url should be:
http://p-cdn1-c-cg14-linear-cbd46b77.movetv.com/15807/live/CNNHD-DYN/6986bd324cdc11ebb62f0025b5472115/audio/stereo/192/00000ffc.m4s
example.mpd.txt
The text was updated successfully, but these errors were encountered: