[Bug 17470] Provide specific guidance on when generateKeyRequest should be called

https://www.w3.org/Bugs/Public/show_bug.cgi?id=17470

--- Comment #5 from David Dorwin <ddorwin@google.com> 2012-09-05 11:22:39 UTC ---
(In reply to comment #4)
> I would like to reopen this issue. I am concerned about the cases where being
> able to preload keys would significantly impact the user experience. 
> 
> Consider this scenario -- 
> The user browses to a video distributor using a domain key model for
> determining entitlements. If the user has not yet acquired the appropriate keys
> and there is no additional user interaction required, they could be acquired
> while the user is browsing the video selection rather than waiting until the
> user selects a video and tries to play. This would result in a better user
> experience in cases where the key acquisition takes a perceptible amount of
> time (i.e. over 1 sec).

This sounds similar to the use case mentioned in Comment 1. I think what you
want to do is possible with the new OO APIs.

> Given that loading is required to begin, how can we achieve this? Could the
> MediaKeys object be instantiated independent of an HTMLMediaElement?

Yes, in the OO APIs. You just can't assign the MediaKeys to the
HTMLMediaElement until loading has started.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 September 2012 11:22:53 UTC