Jump to content

How to load stream + license from JAVAScript? (or PHP)


Badchip

Recommended Posts

I'd like to load a live DASH stream (.mpd) with a license from Google Chrome.
Recently I could do it using JW Player but now there is a CORS protection (however it works using a HLS + DASH Player Chrome extension)

My question is: How to load the 2 URL's together without JW Player?

This is the JW Player code:

<script>
    var playerInstance = jwplayer("player");
playerInstance.setup({
    playlist: [{
        "sources": [{
            "file": "//stream.com",
            "drm": {
                "widevine": {
                    "url": "//license.com"
                }
            }
        }]
    }],
});
</script>

Thank you in advance.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...