<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:calvaris&#64;igalia.com" title="Xabier Rodríguez Calvar &lt;calvaris&#64;igalia.com&gt;"> <span class="fn">Xabier Rodríguez Calvar</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] unrelated codecs required to play videos"
   href="https://bugs.webkit.org/show_bug.cgi?id=135972">bug 135972</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
               &nbsp;
           </td>
           <td>calvaris&#64;igalia.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] unrelated codecs required to play videos"
   href="https://bugs.webkit.org/show_bug.cgi?id=135972#c15">Comment # 15</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GStreamer] unrelated codecs required to play videos"
   href="https://bugs.webkit.org/show_bug.cgi?id=135972">bug 135972</a>
              from <span class="vcard"><a class="email" href="mailto:calvaris&#64;igalia.com" title="Xabier Rodríguez Calvar &lt;calvaris&#64;igalia.com&gt;"> <span class="fn">Xabier Rodríguez Calvar</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=135972#c6">comment #6</a>)
<span class="quote">&gt; Relevant part of the spec:
&gt; <a href="http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#mime-types">http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#mime-types</a>
&gt; 
&gt; So considering this, I think the best we could do here would be if we could
&gt; directly override media.canPlayType() with our own implementation instead of
&gt; just passing a list of mimetypes we might support to the upper layers.
&gt; 
&gt; Inside the media.canPlayType() implementation we could then check directly
&gt; against the available GStreamer plugins and handle missing mime type details
&gt; accordingly.
&gt; 
&gt; For example for
&gt; - video/mp4 we could check if: a) a MP4 demuxer is available, b) at least
&gt; one video or audio decoder for H264, MPEG-4 Part 2, MP3 or AAC is available.
&gt; Here we would return &quot;maybe&quot;
&gt; - video/mp4,codec=mp4v.20.8&quot; check if: a) a MP4 demuxer is available, b) a
&gt; MPEG-4 Part 2 video decoder is available. Here we can probably return
&gt; &quot;probably&quot; instead of &quot;maybe&quot; then
&gt; 
&gt; Opinions?</span >

I think this is the way to go.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>