WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
165052
Delay in response to encryption events while paused causes MEDIA_DECODE_ERROR
https://bugs.webkit.org/show_bug.cgi?id=165052
Summary
Delay in response to encryption events while paused causes MEDIA_DECODE_ERROR
Aaron Boushley
Reported
2016-11-23 14:12:30 PST
Reproduction Steps: 1. Start playback of a video that has FairPlay DRM. 2. Pause the video (doesn't matter if video has actually begun playback or not) 3. Switch tabs (or focus other applications), this causes a webkitneedkey event to be fired 4. Wait 10-15 seconds after this webkitneedkey event (keeping the video tab in focus) Expected Results: Nothing happens. The video element is able to sit idle without responses to encryption/needkey as long as it remains paused. This was the behavior on OSX 10.11. Actual Results: On macOS 10.12 a Media Error with Code 3 (MEDIA_ERR_DECODE) is fired. A simplified version of this error can be seen here:
https://jsfiddle.net/boushley/uprzdx1o/
In our real use case we are waiting for the user to actively click play before handling some session setup that is needed to have successful license requests. For this reason we end up with delays that are long enough to trigger this error behavior when the user re-focuses the browser, but doesn't click play.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-12-01 12:37:33 PST
<
rdar://problem/29464650
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug