wpt icon indicating copy to clipboard operation
wpt copied to clipboard

[eme] Test failure during playback when a license expires

Open mwatson2 opened this issue 10 years ago • 5 comments

When a license expires during playback, playback should fail. A license with a specific expiry time can be obtained with the code in PR #3798.

This test may be tricky to make reliable, since we only have 10 seconds of content and will need to set the expiration and start playback such that expiration occurs during playback. Likely the expiration will need to be set 10-15s in the future, to give time for the license exchange content loading etc. to complete, then playback could be started, then paused to wait until a few seconds before license expiration, then started again.

mwatson2 avatar Sep 26 '16 17:09 mwatson2

Ok, so I created PR #3936 anyway. This tests a license expiring using the playDuration control (the absolute expiration control on DRMToday is not accurate enough to have the license expire during our short playback).

All three browsers fail on this, because they all continue playback, with timeupdates, past the expiration. Chrome / Firefox at least stop rendering video (continuing with audio only) and issue a keyStatus update with expired status. Edge renders the video all the way through, so perhaps the server is not returning the right kind of license ?

mwatson2 avatar Oct 07 '16 17:10 mwatson2

@jdsmith3000 I wonder if someone at MS could look at the license that is being returned for PlayReady in this test and check that it has the specified play duration limit ?

mwatson2 avatar Oct 11 '16 16:10 mwatson2

I will confirm.

jdsmith3000 avatar Oct 12 '16 00:10 jdsmith3000

This issue hasn't moved for close to a month. Do we view fixing it as V1?

The existing test has known issues with Edge, but in concept, we believe the requirement behind it is valid.

jdsmith3000 avatar Oct 31 '16 22:10 jdsmith3000

It sounds like Chrome and Firefox mostly do what they are supposed to. I wonder if Chrome actually stops audio after three seconds. If so, this would be related to https://crbug.com/658422.

@mwatson2, do you want to rebase, and we can review?

/sub @jrummell-chromium

ddorwin avatar Oct 31 '16 23:10 ddorwin