As the title of this post, I would like to know if we have a way to use pure Javascript and video HTML5 to play DRM content (movie, tv channel).
I am handling a website which provide DRM contents. For each browser, we have to use a different DRM provider with different configuration. For example Safari support only Fairlay, Chrome support Widevine, Edge support both Widevine and Playready.
Currently we have to use third party such as Shaka player, Dashjs,... to play these. I realize that this is quite complicated. I see that all library is written in Javascript. The main flow will be reading the stream manifest, call the DRM server to get the key, get the encoded segments. Then decode the segments by the key returned from the DRM server.
I wish we have a way to use pure Javascript & video HTML5 only. Is this possible?
Thanks.