Click here to Skip to main content
13,667,203 members
Rate this:
Please Sign up or sign in to vote.
See more:
I had used these methods which are working fine in all other browser except IE. I had upgraded IE 9 to IE 11. I am giving the codes below which I had tried.

//First Method I am trying to implement which working in all other browser except IE11
String htmlStr ="<source src=\""+s+"mp4\" type=\"video/mp4\">" +
                       "<source src=\""+s+"webm\" type=\"video/webm\">" +
                       "<source src=\""+s+"ogv\" type=\"video/ogg\">";
       return htmlStr;

//Second Method I am trying to implement which working in all other browser except IE11

 String htmlStr = "<source src=\"" + s + "mp4\" type=\"video/mp4; codecs=avc1.42E01E,mp4a.40.2\" />http://localhost:1242/BollyBlooper/index.aspx <source src=\"" + s + "webm\" type=\"video/webm; codecs=vp8,vorbis\" /> <source src=\"" + s + "ogv\" type=\"video/ogg; codecs=theora,vorbis\" />" +
     "<object width=\"620px\" height=\"auto\" type=\"application/x-shockwave-flash\"" +
     "data=\"flowplayer-3.2.1.swf\">" +
     "<param name=\"movie\" value=\"flowplayer-3.2.1.swf\" />" +
     "<param name=\"allowfullscreen\" value=\"true\" />" +
     "<param name=\"flashvars\" value=\"config={'clip': {'url': 'http://localhost:1242/BollyBlooper/Video/Video/" + s + "mp4', 'autoPlay':false, 'autoBuffering':true}}\" />" +
     "<p>Download video as <a href=\"~/Video/Video/" + s + "mp4\">MP4</a>, <a href=\"~/Video/Video/" + s + "webm\">WebM</a>, or <a href=\"~/Video/Video/" + s + "ogv\">Ogg</a>.</p></object>";
return htmlStr;

If I am directly using it in HTML format in other file It is playing it well. HTML5 videos.
<source src="Video/Video/BallEmpire.mp4" type="video/mp4">
<source src="Video/Video/BallEmpire.webm" type="video/webm">
<source src="Video/Video/BallEmpire.ogv" type="video/ogg">

How to make above any of the method to run on IE11. Please Help.
Posted 11-Apr-14 0:34am
Updated 11-Apr-14 0:49am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05-2016 | 2.8.180820.1 | Last Updated 11 Apr 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100