Open KunXi-Fox opened 1 month ago
Hello, It looks likes the URL resolution in the RxPlayer does not met the spec for absolute path. From the DASH spec 5.6.4 Reference resolution:
URLs at each level of the MPD are resolved according to IETF RFC 3986
Which is defined here: https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.1
The example that correspond to the absolute path case:
BaseURL: "http://a/b/c/d;p?q" relativeReference: "/g" Output = "http://a/g"
Bug Description
Currently rx-player didn't resolve base url correctly when root MPD base url start with
/
Expected behavior
resolve('/a/b/c', 'https://example.com/a') should return
https://example.com/a/b/c
nothttps://example.com/a/a/b/c
Details
MPD Example:
MPD base url is: https://example.com/dash/index.mpd
For first period
actual behavior
Expected Behavior