WebPlatformForEmbedded / WPEWebKit

WPE WebKit port (downstream)
211 stars 135 forks source link

[wpe-2.22] DRM Widevine license renewal fails #1256

Closed laurence-ejraee closed 5 months ago

laurence-ejraee commented 8 months ago

On wpe-2.22 branch (tried with latest commit) it seems widevine renewal doesnt work whereas in wpe-2.28 it is working. I used Axinom to create a very simple Widevine renewal and tested with Bitmovin, but when a new license is requested: I see the request made, license response received, but the DrmLicenseAdded event never fires (I suspect from WebKit side) and the player gives error "Key not available":

[Debug] drm license request base64: – "CAES/wwKrgwIARL/CQq/AggCEhDmhRykwmjVTMfTCNajdCfVGIj55asGIo4CMIIBCgKCAQEAlx00lGR96OI3qD0eyEzD+5/cpvF1IbFah0sW8v8Zy/TgUqYXuYt3z6/4CAZARyy2Xu3O…" (bitmovinplayer.js, line 11)

[Debug] drm license response base64: – "CAIS3AIKOgogMzhGRjc5QkQ4RkE4NEYzMzA1MDAwMDAwMDAwMDAwMDASCJZ/rceOEQlfIAEoADgAQABIr/rlqwYSHAgBEAEYASAAKAAw3wE4PEIASKMBUApYAXAAeAAaZhIQqoICQNRh…" (bitmovinplayer.js, line 11)

[Log] DrmLicenseAdded === – {type: "drmlicenseadded", timestamp: 1702460721626, license: {id: "1", keyIds: ["

(First request works)

[Debug] drm license request base64: – "CAESVBJCGkAKOgogMzhGRjc5QkQ4RkE4NEYzMzA1MDAwMDAwMDAwMDAwMDASCJZ/rceOEQlfIAEoADgAQABIr/rlqwYQBBgEGAIgtfrlqwYwFTiayuPeBRogoxC85+6qCH8dhy/he5AO…" (bitmovinplayer.js, line 11)

[Debug] drm license response base64: – "CAISbgo6CiAzOEZGNzlCRDhGQTg0RjMzMDUwMDAwMDAwMDAwMDAwMBIIln+tx44RCV8gASgBOABAAEiv+uWrBhISCAEYATDvATg8QgBIswFQClgBGhYgA0ISChBrY3RsAAAA71vY5RoA…" (bitmovinplayer.js, line 11)

(Second request/license renewal added event missing)

_[Error] PlayerError(1204/SOURCE_STREAM_TYPE_NOT_SUPPORTED) The video element has thrown a media error. – {code: 4, mediaError: "MEDIA_ERR_SRC_NOTSUPPORTED", message: "Key not available"}


I realise this is an outdated version of wpewebkit so working on a fix for this is not really desired, but what would be useful to know is: is this a known issue with wpe-2.22 that widevine license renewal doesn't work, or is this issue only being seen by myself? If widevine license renewal is actually working on wpe-2.22, if possible please share a demo with me to investigate.

Any insight here is appreciated, Thanks.

calvaris commented 6 months ago

I don't know if we'll be able to work on this, but if I could I would do only if you can provide a use case in the shape of a simple HTML file.

calvaris commented 5 months ago

I got notice that we are not supporting 2.22 anymore. Should there be any urgency, please handle it through RDK and we can revisit this. Thanks!