-
I'm working on a project where I need to compute the duration of VOD sources from static MPD files without playing them. I am exploring the possibility of using dash.js, particularly its parsing modules, to achieve this. I noticed that dash.js processes the MPD files to extract various attributes, including duration, when initializing the player. Is there a way to leverage dash.js to parse MPD files and extract duration information without initiating playback? Additionally, I'm curious about how dash.js computes the total duration of a VOD. Does it derive this information from the mediaPresentationDuration attribute, from the Period@duration attribute, or does it compute the duration using SegmentTimeline elements? Thank you in advance for your assistance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
ManifestLoader.js
might be a good starting point but it will be hard to extract all dependencies into a separate module. If you only want to compute the duration my suggestion is to use a standard XML parser and then extract the information from theremediaPresentationDuration