<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17729</bug_id>
          
          <creation_ts>2012-07-10 03:25:45 +0000</creation_ts>
          <short_desc>suggest needKey report codecs+key system supported by the UA</short_desc>
          <delta_ts>2012-08-28 20:26:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>Encrypted Media Extensions</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yang Sun">eric.sun</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <cc>ddorwin</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-media</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69759</commentid>
    <comment_count>0</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-07-10 03:25:45 +0000</bug_when>
    <thetext>It is a little complex for JS to test the UA using canPlayType() for many times to determine the key system.

I propose we just use needKey event to report the supported codec+key system pairs list to app, let app choose one key system among it, this will reduce the times of call to the UA for testing key system using canPlayType, and avoid extension of canPlayType.

What do you think about it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69783</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-07-10 14:02:39 +0000</bug_when>
    <thetext>We considered this before submitting the original proposal. However, we expect the number of possible key systems to be small and so the web page can try generateKeyRequest with different key systems in the order of preference of the site until one matches the [UA,Page,Media] supported combination.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72913</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-08-28 20:26:35 +0000</bug_when>
    <thetext>The behavior is by design and consistent with existing canPlayType() use.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>