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.