26 April 2018

A video can be watched in Chrome but not in IE, or in IE but not in Chrome

A video can be watched in Chrome but not in IE, or in IE but not in Chrome


1   <video width="480" height="300" controls autoplay>
2    <source src="https://app.cicscanada.com/video/english/homepage/cics_50th_anniversary_gala.mp4" type="video/mp4" />
3   <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="300">
4    <!--[if !IE]>-->
5    <object type="application/x-shockwave-flash" data="http://app.cicscanada.com/video/player/player.swf" width="480" height="300">
6    <!--<![endif]-->
7    <param name="movie" value="http://app.cicscanada.com/video/player/player.swf" />
8    <param name="wmode" value="transparent" />
9    <param name="bgcolor" value="#FFFFFF" />
10   <param name="quality" value="high" />
11   <param name="allowFullScreen" value="true" />
12   <param name="allowscriptaccess" value="always" />
13   <a href="http://www.adobe.com/go/getflash">
14   <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
15   </a>
16   <param name="flashvars" value="vdo=/video/english/homepage/cics_50th_anniversary_gala.flv&amp;autoplay=true" />
17   <!--[if !IE]>-->
18   </object>
19   <!--<![endif]-->
20   </object>
21  </video>

IE plays flv, while Chrome plays mp4.

Line #16 is for IE. You should not put 'https://app.cicscanada.com' before the file path '/video/english/homepage/...', otherwise, IE would not play the video.

Line #2 is for Chrome. You have to put 'https://app.cicscanada.com' before the file path '/video/english/homepage/...', otherwise, Chrome would not play the video.

(THE END)

No comments:

Post a Comment