There are occurrences in the inheritAttributes functionality where this representationInfo array contains undesired duplicates. This generally occurs when there are multiple BaseURL nodes that are direct children of the MPD node. When we attempt to resolve URLs from a combination of the parent BaseURL and a child BaseURL, and the value does not resolve, we end up returning the child BaseURL multiple times. We need to determine a way to remove these duplicates in a safe way.
There are occurrences in the inheritAttributes functionality where this
representationInfo
array contains undesired duplicates. This generally occurs when there are multiple BaseURL nodes that are direct children of the MPD node. When we attempt to resolve URLs from a combination of the parent BaseURL and a child BaseURL, and the value does not resolve, we end up returning the child BaseURL multiple times. We need to determine a way to remove these duplicates in a safe way.See: https://github.com/videojs/mpd-parser/pull/17#discussion_r162750527
Example Input (Note that there are multiple BaseURLs as direct children of the MPD tag)
Current Actual RepresentationInfo
Expected (Notice there is one less entry than the last)