<?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>24411</bug_id>
          
          <creation_ts>2014-01-27 19:22:01 +0000</creation_ts>
          <short_desc>Expose supported media formats API to Web Workers</short_desc>
          <delta_ts>2014-01-30 17:28:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSS</product>
          <component>CSSOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Jonas Sicking (Not reading bugmail)">jonas</reporter>
          <assigned_to name="Simon Pieters">zcorpan</assigned_to>
          <cc>ian</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>public-css-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>99180</commentid>
    <comment_count>0</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2014-01-27 19:22:01 +0000</bug_when>
    <thetext>We should expose an API for detecting which image/audio/video formats the UA supports to Web Workers.

This is going to be especially important for ServiceWorkers who will want to decide which resources to download based on capabilities of the UA.

So for example the SW will want to pre-cache a large video or image file, but it wants to get it using a format that the UA supports.

Bug 24387 comment 2 has a more detailed description why this is needed from within a Web Worker and why exposing an API just in Window contexts isn&apos;t enough.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99479</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-30 17:28:35 +0000</bug_when>
    <thetext>Seems reasonable. Is the &quot;canPlayType()&quot; function sufficient for video? Would that plus &quot;canShowType()&quot; or something work? Should we just have a single &quot;isTypeSupported()&quot; function that returns the union of those?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>