castlabs / electron-releases

castLabs Electron for Content Security
https://castlabs.com/resources/downstream/
MIT License
224 stars 42 forks source link

VERY STRANGE PROBLEM: Drm Widevine not work in Electron App, but it work in Chrome Browser #163

Open vanminhquangtri opened 1 year ago

vanminhquangtri commented 1 year ago

I got a very very strang problem, that I think it's may be from electron. I use Widevide DRM to play my protect video on project Vue + Electron. I run electron:serve sucess at: http://localhost:80 On Electron APP: when call api DRM widevine to get key: it throw error: HTTP Status 400 – Bad Request

BUT, if I run http://localhost:80 on Chrome, it has no problem. So I would like if anyone can give me advice how to solve this, thank you. My app version: "electron": "github:castlabs/electron-releases#v25.2.0+wvcus", "electron-builder": "^23.2.0", "vue": "^3.2.13",

player: dashjs 4.7.1

khwaaj commented 1 year ago

Did you sign your build with EVS? If not, then that is likely what is lacking. Most production streaming services will not allow DRM requests where this signature is not valid (or only for development, as is the case with the default signature on ECS builds).

Also, there are some issues around the VUE build tools being discussed in various threads here. I don't personally have any experience with VUE, but it seems there are people that have managed to get this to work, so you can probably find some hints in these threads.