Make shaka read drm info from manifest - URGENT!!!

545 views
Skip to first unread message

Filipe Peixinho

unread,
May 26, 2017, 5:01:11 AM5/26/17
to Shaka Player Users
Hello all,

I'm sending this message to this group after spending some time searching for a solution and not be able to find it until now. I'm urging with time and I'm also a newbie in this matter (dash/widevine/playready....) so I'm asking each one of you who tool time to read this message to help me.

I'm trying to play a dash stream encrypted with widevine and playready and the licensing url is provided in the dash manifest.
Question: Is there any way to make shaka player read this information from the manifest and retrieve the LA URLs automatically without me to provide them using configure function?

Does anyone know a way to do this or an alternative way? I only have the dash manifest's URL and an authentication token to provide when shaka make the license request to LA URL. I don't have LA URL at playback time.

I read shaka documentation but I bet that is because I'm a newbie in this matter I can't figure out if this is possible or not.
Thank you for the time you spent reading this and I hope you can help me with this matter.

Regards
Filipe

Sandra Lokshina

unread,
May 26, 2017, 2:28:57 PM5/26/17
to shaka-pla...@googlegroups.com
Hi Filipe,

Could you share an example of the licensing url being provided in the dash manifest?
I don't think we support reading it from the manifest at the moment, but we might be able to add this or at least give some advice on how to customize the dash parser for your project so it does that.

-Sandra 

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-player-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-player-users/ec972ad4-1bc2-4885-9d2b-0e6252736c38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jacob Trimble

unread,
May 30, 2017, 1:15:11 PM5/30/17
to shaka-pla...@googlegroups.com
I think PlayReady content embeds the url in an <ms:laurl> element, see #484.  Usually, this is the same as the URL that was given to the source content, so it will be the same between different manifests.  Usually the license server URL is constant for an app (which is why it is a configuration).  If you need to authenticate with your server, you can follow the authentication tutorial to modify headers and change query parameters as needed.

If you need to pull the URL from the manifest, you can use the |.manifest.dash.customScheme| configuration.  This specifies a function that is called when we see a <ContentProtection> element that we do not recognize.  You can then set a custom value for schemeIdUri, and that element will be passed to the function.  Then you will return an array of shakaExtern.DrmInfo objects.  Most fields are optional, so you can just set the key system and the license server URL and we will fill in the rest with defaults.

player.configure({
  manifest: {
    dash: {
      customScheme: function(element) {
        if (element.getAttribute('schemeIdUri') == 'com.mysite.playready') {
          return [{
            keySystem: 'com.microsoft.playready',
            licenseServerUri: element.getElementsByTagName('ms:laurl')[0].getAttribute('licenseUrl')
          }];
        }
      }
    }
  }
});

On Fri, May 26, 2017 at 11:28 AM, 'Sandra Lokshina' via Shaka Player Users <shaka-pla...@googlegroups.com> wrote:
Hi Filipe,

Could you share an example of the licensing url being provided in the dash manifest?
I don't think we support reading it from the manifest at the moment, but we might be able to add this or at least give some advice on how to customize the dash parser for your project so it does that.

-Sandra 
On Fri, May 26, 2017 at 2:01 AM, Filipe Peixinho <fpei...@outlook.com> wrote:
Hello all,

I'm sending this message to this group after spending some time searching for a solution and not be able to find it until now. I'm urging with time and I'm also a newbie in this matter (dash/widevine/playready....) so I'm asking each one of you who tool time to read this message to help me.

I'm trying to play a dash stream encrypted with widevine and playready and the licensing url is provided in the dash manifest.
Question: Is there any way to make shaka player read this information from the manifest and retrieve the LA URLs automatically without me to provide them using configure function?

Does anyone know a way to do this or an alternative way? I only have the dash manifest's URL and an authentication token to provide when shaka make the license request to LA URL. I don't have LA URL at playback time.

I read shaka documentation but I bet that is because I'm a newbie in this matter I can't figure out if this is possible or not.
Thank you for the time you spent reading this and I hope you can help me with this matter.

Regards
Filipe

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-player-users@googlegroups.com.

Filipe Peixinho

unread,
Jul 3, 2017, 10:06:11 AM7/3/17
to Shaka Player Users
Thank you Sandra and Jacob for your kind replies.

They were very usefull in a way that starts to give me an idea of how this drm stuff works :)
I read more about it and decide to implement a different approach without depending of keyid inside manifest.

Once more that you for your support and a nice day for you two.

Regards
Filipe
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages