<?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>17676</bug_id>
          
          <creation_ts>2012-07-03 09:10:42 +0000</creation_ts>
          <short_desc>needkey for all keys relative with a media file</short_desc>
          <delta_ts>2012-08-28 20:25:24 +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>69585</commentid>
    <comment_count>0</comment_count>
    <who name="Yang Sun">eric.sun</who>
    <bug_when>2012-07-03 09:10:42 +0000</bug_when>
    <thetext>now, the needkey is only for 1 key.
But it is common the file will contain multiple keys used to decrypt multiple video/audio tracks.

If we fire needkey for each key, it is not optimistic and can we combine them together, to generate the key request?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69601</commentid>
    <comment_count>1</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-07-03 17:20:35 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; now, the needkey is only for 1 key.
&gt; But it is common the file will contain multiple keys used to decrypt multiple
&gt; video/audio tracks.

The needkey event is always fired with a single initData value.
The number of keys currently depends on the container:
 * WebM (bug 17672) - 1 key per initData
 * ISO BMFF/CENC (bug 17673) - 1 or more keys per initData

&gt; If we fire needkey for each key, it is not optimistic and can we combine them
&gt; together, to generate the key request?

It seems this would be difficult to implement for containers that do not already group keys. Also, if multiple files/streams are used, those will generate separate needkey events, so this is already an issue applications may need to deal with. For such changes, we should consider the complexity of optimizing vs. the performance or other gain for these relatively rare events.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72912</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-08-28 20:25:24 +0000</bug_when>
    <thetext>Whether one or more keys are acquired in a session is an implementation detail for the container/CDM. This is supported with the current initData/message exchange.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>