<?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>225654</bug_id>
          
          <creation_ts>2021-05-11 07:43:30 -0700</creation_ts>
          <short_desc>Unable to play webm video from Cloudfront CDN unless it has .webm extension</short_desc>
          <delta_ts>2023-10-12 16:28:53 -0700</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>Safari 14</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</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="Darin">darin.dimitrov</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>darin.dimitrov</cc>
    
    <cc>jer.noble</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1758900</commentid>
    <comment_count>0</comment_count>
    <who name="Darin">darin.dimitrov</who>
    <bug_when>2021-05-11 07:43:30 -0700</bug_when>
    <thetext>I have uploaded the same webm video on two different CDNs and I am trying to play it in Safari using the &lt;video&gt; tag:

&lt;video
    controls
    crossorigin=&quot;anonymous&quot;
    preload=&quot;auto&quot;
    width=&quot;640&quot;
    height=&quot;264&quot;&gt;
    &lt;source src=&quot;https://snapshots.getfiddler.cc/jam-files/19516557d1484505be0d6df587883d2d?Expires=1702305315&amp;Signature=AHclNVTFMZGVaVU0~q2-IeueiVjltCU79MZ0vpj9gu5t7VAetercr~b5RAm5S80UTRA0SSe7dluctbZieO3seMI9AUtZ3EdZMWlpZDSZXP3dpJVHBxbgkfcmSw393Medn1AtIiPObDnBHLaalHgDIl-o8H1m7XyIKINuR0tQXUIo7ZjIejz4fMZkSDQSKAvwHuD2mzcpZytgMMMho~7RcE5tqzbyM6OZHO-6ArqwoOpadLwY9OUa6L7JTEUauJ2MA44r15FU0muMXMr-OzAI3wxb9WHTGo8yNabvDJHDu2Mto2JQNkbkvHmN~SqwHSB1eNarLKjc2y2BP9cfqPPNog__&amp;Key-Pair-Id=APKAIF6VYYHXO2CANQUA&quot; type=&quot;video/webm;codecs=&amp;quot;vp9&amp;quot;&quot;&gt;&lt;/source&gt;
&lt;/video&gt;

Live demo: https://jsfiddle.net/w1os50ud/

Inspecting the network tab, the media HTTP request fails without any error logged to the console.

The same video file works if I use the following url:

&lt;video
    controls
    crossorigin=&quot;anonymous&quot;
    preload=&quot;auto&quot;
    width=&quot;640&quot;
    height=&quot;264&quot;&gt;
    &lt;source src=&quot;https://downloads.getfiddler.cc/foo/video_plain_vp9.webm&quot; type=&quot;video/webm;codecs=&amp;quot;vp9&amp;quot;&quot;&gt;&lt;/source&gt;
&lt;/video&gt;

Live demo: https://jsfiddle.net/5bmch2pa/

By looking at the network tab I cannot see any apparent difference between the two requests or responses.

Do you have any idea why the first CDN doesn&apos;t work in Safari while it works on all other browsers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1758936</commentid>
    <comment_count>1</comment_count>
    <who name="Darin">darin.dimitrov</who>
    <bug_when>2021-05-11 09:59:37 -0700</bug_when>
    <thetext>It seems that the only difference between the 2 urls is that the one that works contains &quot;.webm&quot; extension and it is what makes the difference. Even though both set the Content-Type response header to &quot;video/webm&quot;, if the url doesn&apos;t contain a .webm extension, Safari refuses to load it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1761148</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-18 07:44:17 -0700</bug_when>
    <thetext>&lt;rdar://problem/78154594&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1984752</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-12 16:28:53 -0700</bug_when>
    <thetext>I am able to reproduce this bug and the JSFiddle does not load any video content in Safari Technology Preview 180. While works fine in Chrome Canary 120.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>