IE8 now support HTML5 Video
Internet Explorer 8
Get IE8 to Support HTML5 video with JWplayer , IE8 Issue with Jwplayer and Html5
As we know this is one of the earlier version of IE so its actually more buggy . i have faced lot of issue while using IE8 , in my project i have used a scenario which is JWplayer with Html 5
As we know this is one of the earlier version of IE so its actually more buggy . i have faced lot of issue while using IE8 , in my project i have used a scenario which is JWplayer with Html 5
HTML5 is new and all the browsers are trying support as much HTML5 features possible in their current and upcoming versions. HTML5 is not back compatible with older version of browsers.
My Problem and Solution
I was unable to play html5 video with jwplayer in IE8 actaully it was working in all other browsers.
what i do here is my code .
<!DOCTYPE html>
<head>
<title>test </title>
<meta name="description" content="">
<meta name="author" content="">
<title>test video </title>
<script type='text/javascript' src='https://s3.amazonaws.com/files.infopave.com/jwplayer.js'></script>
<script type="text/javascript"> jwplayer.key = "MyKey";</script>
<style type="text/css">
html, body
{
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
#player
{
height: 100%;
width: 100%;
padding: 0;
margin: -3px;
}
</style>
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<div id='my-video'>
</div>
<script type='text/javascript'>
jwplayer('my-video').setup({
// flashplayer: 'player.swf', (fix do not use this if you are using HTML5 bcs your video will not get run
file: 'rtmp://s1nu7pjztotbeg.cloudfront.net/cfx/st/mp4:Help/How_To/GettingStarted_V2-Sm_x264.mp4',
width: '50%',
height: '80%',
stretching: 'exactfit'
});
</script>
</body>
</html>
You can see HTML5 browsers testing here
http://html5test.com/compare/browser/mybrowser/firefox-26/ie-11/ie-10/ie-9.html
Happy Coding.
Noor Ur Rahman
Skype: webdeveloper84
Facebook :My Facebook Page
No comments:
Post a Comment