<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>216652</bug_id>
          
          <creation_ts>2020-09-17 10:34:26 -0700</creation_ts>
          <short_desc>Safari reports WebM+VP9 support on macOS Big Sur Safari, but fails to play</short_desc>
          <delta_ts>2022-11-17 17:23:29 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Other</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomás Palmeirim">tomaspalmeirim</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>jer.noble</cc>
    
    <cc>joeyparrish</cc>
    
    <cc>jrjdavidson</cc>
    
    <cc>naktinis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1689498</commentid>
    <comment_count>0</comment_count>
    <who name="Tomás Palmeirim">tomaspalmeirim</who>
    <bug_when>2020-09-17 10:34:26 -0700</bug_when>
    <thetext>Browser: Safari Version 14.0 (16610.2.2.4) / Safari Technology Preview Release 113 (Version 14.0.1, WebKit 16610.2.3.1)
OS: macOS Big Sur Version 11.0 Beta (20A5364e)

MediaSource.isTypeSupported(&apos;video/webm&apos;) returns true

However, the browser cannot play webm videos, as can be seen at: https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.360p.vp9.webm or https://dl5.webmfiles.org/big-buck-bunny_trailer.webm

This also breaks libraries such as Shaka Player (https://github.com/google/shaka-player/issues/2852)

Interestingly, canPlayType correctly reports that this format is not supported
document.createElement(&apos;video&apos;).canPlayType(&apos;video/webm&apos;) returns &quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689556</commentid>
    <comment_count>1</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2020-09-17 12:42:29 -0700</bug_when>
    <thetext>This behaves correctly. WebM is only supported in MSE, and is not supported through file-based playback. So it is expected that MediaSource.isTypeSupported(&apos;video/webm&apos;) returns true but canPlayType(&apos;video/webm&apos;) returns &quot;&quot; (not supported).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689558</commentid>
    <comment_count>2</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2020-09-17 12:48:10 -0700</bug_when>
    <thetext>And the Shaka bug is unrelated to the query here; the video decoder returns an error (kVTVideoDecoderBadDataErr) when decoding the media in question.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689564</commentid>
    <comment_count>3</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2020-09-17 13:01:44 -0700</bug_when>
    <thetext>Thanks, Jer.  That is useful info.  I think it would be reasonable to close both bugs, since the underlying issue seems to be a failure to decode the content, presumably due to bad encoding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689565</commentid>
    <comment_count>4</comment_count>
    <who name="Joey Parrish">joeyparrish</who>
    <bug_when>2020-09-17 13:02:34 -0700</bug_when>
    <thetext>Unless, of course, you think the decoder error is a bug in Safari or macOS.  (I should have thought it through more before sending the last comment.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1689624</commentid>
    <comment_count>5</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2020-09-17 16:10:51 -0700</bug_when>
    <thetext>&gt; Unless, of course, you think the decoder error is a bug in Safari or macOS.  (I should have thought it through more before sending the last comment.)

No, I think the shaka behavior is a bug in our WebM parser; we haven&apos;t yet implemented support for WebM Frames without a duration present. So the frames emitted from our parser have zero duration, and get removed by subsequent samples.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1691570</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-09-24 10:35:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/69512077&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1707813</commentid>
    <comment_count>7</comment_count>
    <who name="">naktinis</who>
    <bug_when>2020-11-16 07:46:00 -0800</bug_when>
    <thetext>Just wanted to give a heads up that this or a related issue (&quot;WebM Frames without a duration present&quot; not being supported) seems to be live on machines that have updated to Big Sur Safari.

I am getting &quot;Shaka Error MEDIA.VIDEO_ERROR (3,,)&quot; on the shaka test page: https://shaka-player-demo.appspot.com/demo/#audiolang=en-gb;textlang=en-gb;uilang=en-gb;asset=https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd;panel=HOME;build=uncompiled

Could you confirm that you also see this? Should I file a separate issue about support for &quot;WebM Frames without a duration present&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913342</commentid>
    <comment_count>8</comment_count>
    <who name="Jonathan Davidson">jrjdavidson</who>
    <bug_when>2022-11-17 17:23:29 -0800</bug_when>
    <thetext>I think I might have run into this issue, i&apos;ve got webm encoded videos that play fine on most devices, only not on macOS (iOS seems to be fine?)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>