<?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>24292</bug_id>
          
          <creation_ts>2014-01-14 16:52:38 +0000</creation_ts>
          <short_desc>Video and Audio constructors should accept File and Blob.</short_desc>
          <delta_ts>2014-02-16 11:09:55 +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>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>23775</dup_id>
          
          <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>oao.hikaru.oao</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>arun</cc>
    
    <cc>cyril.concolato</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>silviapfeiffer1</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>98436</commentid>
    <comment_count>0</comment_count>
    <who name="">oao.hikaru.oao</who>
    <bug_when>2014-01-14 16:52:38 +0000</bug_when>
    <thetext>Now, when use `File` to `Audio`, we should write like this,

var audio = new Audio(URL.createObjectURL(file));

but, that is redundancy, and `createObjectURL` need `revokeObjectURL` to release it&apos;s data.

Therefore, we should be writable like this,

var audio = new Audio(file);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98437</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-14 16:58:17 +0000</bug_when>
    <thetext>The HTMLMediaElement.srcObject suggestion in bug 23775 is relevant.

Also note that there is no Video constructor, not that it matters.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98440</commentid>
    <comment_count>2</comment_count>
    <who name="Arun">arun</who>
    <bug_when>2014-01-14 18:28:22 +0000</bug_when>
    <thetext>(In reply to oao.hikaru.oao from comment #0)
&gt; Now, when use `File` to `Audio`, we should write like this,
&gt; 
&gt; var audio = new Audio(URL.createObjectURL(file));
&gt; 
&gt; but, that is redundancy, and `createObjectURL` need `revokeObjectURL` to
&gt; release it&apos;s data.
&gt; 
&gt; Therefore, we should be writable like this,
&gt; 
&gt; var audio = new Audio(file);

FYI, URL.createFor does not need developers to couple a URL.revokeObjectURL call with it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98444</commentid>
    <comment_count>3</comment_count>
    <who name="">oao.hikaru.oao</who>
    <bug_when>2014-01-14 19:08:33 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #1)
&gt; The HTMLMediaElement.srcObject suggestion in bug 23775 is relevant.
&gt; 
&gt; Also note that there is no Video constructor, not that it matters.

Thanks.
That mean we can write like this ?

var audio = new Audio();
audio.srcObject = file;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98448</commentid>
    <comment_count>4</comment_count>
    <who name="">oao.hikaru.oao</who>
    <bug_when>2014-01-14 19:14:27 +0000</bug_when>
    <thetext>(In reply to Arun from comment #2)

&gt; FYI, URL.createFor does not need developers to couple a URL.revokeObjectURL
&gt; call with it.

Thanks.
I learned that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98474</commentid>
    <comment_count>5</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2014-01-15 03:28:26 +0000</bug_when>
    <thetext>(In reply to oao.hikaru.oao from comment #3)
&gt; (In reply to Philip Jägenstedt from comment #1)
&gt; &gt; The HTMLMediaElement.srcObject suggestion in bug 23775 is relevant.
&gt; &gt; 
&gt; &gt; Also note that there is no Video constructor, not that it matters.
&gt; 
&gt; Thanks.
&gt; That mean we can write like this ?
&gt; 
&gt; var audio = new Audio();
&gt; audio.srcObject = file;

Yes, I believe that&apos;s how it&apos;s supposed to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98476</commentid>
    <comment_count>6</comment_count>
    <who name="">oao.hikaru.oao</who>
    <bug_when>2014-01-15 04:21:07 +0000</bug_when>
    <thetext>(In reply to Philip Jägenstedt from comment #5)
&gt; (In reply to oao.hikaru.oao from comment #3)
&gt; &gt; (In reply to Philip Jägenstedt from comment #1)
&gt; &gt; &gt; The HTMLMediaElement.srcObject suggestion in bug 23775 is relevant.
&gt; &gt; &gt; 
&gt; &gt; &gt; Also note that there is no Video constructor, not that it matters.
&gt; &gt; 
&gt; &gt; Thanks.
&gt; &gt; That mean we can write like this ?
&gt; &gt; 
&gt; &gt; var audio = new Audio();
&gt; &gt; audio.srcObject = file;
&gt; 
&gt; Yes, I believe that&apos;s how it&apos;s supposed to work.

I think it&apos;s good form.
Thank you!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100706</commentid>
    <comment_count>7</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2014-02-16 11:09:55 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 23775 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>