<?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>20335</bug_id>
          
          <creation_ts>2012-12-11 06:47:05 +0000</creation_ts>
          <short_desc>Replace canPlayType() with static bool isTypeSupported() on MediaKeys</short_desc>
          <delta_ts>2013-04-25 03:40:05 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>FPWD</target_milestone>
          
          <blocked>20336</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="David Dorwin">ddorwin</reporter>
          <assigned_to name="Adrian Bateman [MSFT]">adrianba</assigned_to>
          <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>79897</commentid>
    <comment_count>0</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2012-12-11 06:47:05 +0000</bug_when>
    <thetext>Similar to the resolution of MSE&apos;s issue 19531, we should add bool isTypeSupported() to MediaKeys and eliminate the changes to HTMLMediaElement&apos;s canPlayType(). This provides consistency and avoids confusion related to canPlayType(). It also concentrates the key system knowledge in the EME objects.

This was agreed upon at TPAC 2012.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80322</commentid>
    <comment_count>1</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2012-12-18 06:09:59 +0000</bug_when>
    <thetext>We discussed this on the 12/11 telcon:

* At TPAC we discussed making isTypeSupported map to the equivalent MSE functionality to avoid changes to canPlayType().

* The desire is to make it clear that just because a UA supports playback of a certain content type with a media element it doesn&apos;t mean the UA supports playback of that content type with EME. isTypeSupported() should address this.

* On the telcon, what we didn&apos;t agree is whether the &quot;maybe&quot; and &quot;probably&quot; types need to be part of isTypeSupported because here we need to also take into account the key system.

For example, video.canPlayType(&quot;video/xyz&quot;) might return &quot;probably&quot; but MediaKeys.isTypeSupported(&quot;video/xyz&quot;,&quot;com.example.keysystem&quot;) might want to return &quot;maybe&quot; because the key system is only supported for a profile of &quot;video/xyz&quot;.

The question, which we didn&apos;t reach consensus on during the call, was whether applications would want to choose to do something different based on if they received true/false from isTypeSypported or &quot;&quot;/&quot;maybe&quot;/&quot;probably&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81298</commentid>
    <comment_count>2</comment_count>
    <who name="David Dorwin">ddorwin</who>
    <bug_when>2013-01-12 03:56:47 +0000</bug_when>
    <thetext>I made the change in https://dvcs.w3.org/hg/html-media/rev/e12daef9305d. There is still an open issue of whether to return a bool or a string like canPlayType().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86766</commentid>
    <comment_count>3</comment_count>
    <who name="Adrian Bateman [MSFT]">adrianba</who>
    <bug_when>2013-04-25 03:40:05 +0000</bug_when>
    <thetext>Based on the discussion at the F2F, we concluded that returning bool was the best approach. If the application wants the &quot;maybe&quot; vs. &quot;probably&quot; nuance they should use canPlayType. isTypeSupported simply gives an indication about whether the browser supports the content type/protection system combination.

Resolving fixed for the original issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>