Override azure media service widevine template with (rental_duration_seconds, license_duration_seconds) aafter encrypt content with shaka-packager?

mohamed okasha 21 Reputation points
2022-01-01T19:55:34.173+00:00

Hi everyone

I have some questions about using azure media services to get widevine license and encoding content with shaka-packager,

I succeeded to stream encrypted content with shaka-packager using widevine license but when I override policy license_duration_seconds or rental_duration_seconds I did not able to stream content and get this error

XHR complete. status is "" (400), readyState is 4. Response is { "Error": { "Message": "Widevine server returned unexpected response status.", "Code": "WidevineServerResponseStatusNotOk" } }

What is a possible problem?
I issue a license with the open authorization policy
Should I add some information to the header?

I appreciate anyone who can help I waste 3 days trying to solve this problem.

Thank you

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
303 questions
{count} votes

Accepted answer
  1. John Deutscher (MSFT) 2,126 Reputation points
    2022-01-10T17:39:34.537+00:00

    I think William tried to answer this on Stack - https://stackoverflow.com/questions/70633149/even-if-my-azure-widevine-license-has-expired-i-can-still-play-content

    I believe he may be correct - you probably are not on a device or environment that supports persistent licenses for Widevine.
    Without persistent license support, the client will just keep asking for a new license. It thinks it never got it before, so it loads a new fresh license and keeps going.

    A lot of devices do not support Widevine persistent - so you need to look into that or contact Google/Widevine to understand the issue better.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. John Deutscher (MSFT) 2,126 Reputation points
    2022-01-09T00:33:39.023+00:00

    Ah interesting you pointed to that older v2 article https://learn.microsoft.com/en-us/azure/media-services/previous/hybrid-design-drm-sybsystem#modularity-of-the-ams-drm-platform

    That was in the v2 API, it was changed in the v3 API to no longer support 3rd party hosting and encryption. V2 is only supported until February of 2024 at this time.

    If third party hosting and encryption is a requirement, we would encourage you to look at other DRM hosting service providers that will be supporting that scenario. There are a few options out there like BuyDRM.