Closed andygr closed 2 years ago
We are not maintaining the video.js library, an example on how to use the requestModifier with plain dash.js can be found here: https://reference.dashif.org/dash.js/nightly/samples/advanced/extend.html Please check if you can reproduce the problem using only dash.js.
@dsilhavy , thank you for the recommendation. I modified the player, based on the example, and seems to be more stable. I tried all available browsers with Mac and I haven't seen any issue. I will also include Windows PCs.
Generally having the MPD URL and query parameters in different places, seems to be more tidy and flexible.
Regards Andrew
@dsilhavy , can I stream HLS with the same library?
dash.js does not support HLS. video.js supports HLS afaik
do you know if I can use requestModifier with HLS?
Environment
Steps to reproduce
Observed behavior
I have a cloudfront distribution with pre-signed URLs and I am trying to use VideoJS to be able to attach the policy in each request, instead of using signed cookies. For this task I am using custom pre-signed URLs. I have seen in one of the existing issues a suggestion to use videojs.Html5DashJS.hook('beforeinitialize', (player, mediaPlayer) which I tested with 3 different browsers.
I had some intermittent issues with Safari and Chrome but Firefox (v93) seems to be more stable. I pasted the player code in the bottom of the ticket.
Console output
I attached 2 links where you can see the requests with 200 (when is working) and with 403 by using Chrome
https://cosmonetpublic.s3.eu-west-2.amazonaws.com/play.png https://cosmonetpublic.s3.eu-west-2.amazonaws.com/error.png
Expected behavior
I am expecting to see the Mpeg Dash URL with the Cloudfront policy in each request (for mpd, init and video/audio files)