Open sturlath opened 1 year ago
I found this conversation we had @stsrki and I have been trying to get it to work but I just can´t get the token to show up.
Any ideas?
I have been trying to load the Blazorise project so I can debug this and maybe do a PR but what ever I do VS just hangs.. funnily enough on the loading indicator project 😂
Any tips for me @stsrki if I manage to load it?
That can happen sometimes but usually restart helps. Are you on latest VS? We use VS preview for the development.
Yes I only use preview. Updated and restarted but still no go.. will try some stuff.
But regarding the issue, its a bug right? It should provide the token? If so Ill try to fix it.
I haven't tried it so far, but I would say yes.
OK finally managed to load it.. for others later go to %USERPROFILE%\AppData\Local\Microsoft\VisualStudio
and delete all the cache folders there.
I´ll start looking into the issue btw.
I figured out the issue (I think). You are applying the protection data if there is any VideoProtectionType
set.
but I'm not using any DRM this time, just AES encryption.
<Video Source="@Video.DashUrl"
StreamingLibrary="StreamingLibrary.Dash"
ProtectionHttpRequestHeaders="@Video.Token" />
And thats the reason Protection
part is never set.
I tried these steps without the token being set anywhere.
VideoProtectionType
like VideoProtectionType.AES
ToVideoProtectionType()
OnAfterRenderAsync
logicWhat am I missing?
OK looks like dash.js doesn´t support AES...
I´m little confused now... It looks like we can play the DASH video stream with hls.js.. will look at this..
FYI I´m trying to figure this all out in this small demo. using hls.js.
If I try to setup and play a stream that is DASH with AES token the token isn´t applied.
I just get a 400 error and a url that looks like this https://myserver-euno.streaming.media.azure.net/27531r60-8b40-4fef-b158-e00bd3ba45fc/96d76c64-3d5d-5255-8972-83cc89ed110e.ism/manifest(format=mpd-time-csf,encryption=cbc)&aes=true
As you can see there is no token being applied at the end. The stream is just fine and if I add the link to https://ampdemo.azureedge.net/ and add the token it just plays fine.
Update: I had forgotten I had asked this question before 🙄