Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

jwplayer working fine in google-chrome but not in firefox here the setup doc


Unable to play mp4 video in firefox . Jwplayer version 6.10 please help here is the code
<!DOCTYPE html>
<head>
<meta content="video/mp4" http-equiv="Content-Type">
<!-- <meta content="utf-8" http-equiv="encoding"> -->
<!-- // <script src="./javascript/jquery-1.7.1.min.js"></script> -->

<!-- // <script src="http://jwpsrv.com/library/BxwhuqknEeO7hyIACi0I_Q.js"></script> -->
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="./jwplayer.js"></script>
<!-- // <script src="./jwplayer.html5.js"></script> -->
<script type="text/javascript" src="jwplayer.flash.swf"></script>
<script src="http://player.longtailvideo.com/player.swf"></script>
<script type="text/javascript">jwplayer.key="4XPSjXmKwGUbplUirTudsGdZywcrG06HXNbF8cZ04oGf8s7qgzyuYw==";</script>
<!-- http://coolestguidesontheplanet.com/videodrome/jwplayer/ -->
<!-- http://p.jwpcdn.com/6/10/jwplayer.flash.swf -->
</head>
<body>
<div id='videoElement'>Loading the player ...</div>

<script type='text/javascript'>

jwplayer('videoElement').setup({
file: 'http://video.contentapi.ws/As_Above_So_Below_Brings_New_Depths_To_Horror.mp4',

height: 360,
// image: '/uploads/example.jpg',
width: 640 ,
events: {
// onReady: function(){console.log('ready')},

// onPlay: function(){console.log(' playing')}
}
});


</script>
</body>
</html>

and my email id is "karamjeets@dyomo.com"

6 Community Answers

MisterNeutron

User  
0 rated :

Please give us a link to your site. We can't check things like the MIME type without a live page to look at - the embedding code doesn't tell us that.

But you also have a number of errors in the embedding:

<script src="./jwplayer.js"></script>
<script type="text/javascript" src="jwplayer.flash.swf"></script>
<script src="http://player.longtailvideo.com/player.swf"></script>

The player.swf file is from JW5, and should not be present at all. You should be loading only jwplayer.js - the script will call the other files if it needs them. You should have jwplayer.js, jwplayer.html5.js, and jwplayer.flash.swf all sitting together in a directory. But your code should load ONLY jwplayer.js.

You have an unclosed <script tag before your player key.

MisterNeutron

User  
0 rated :

And your <script> tag needs a "type" attribute:

<script type="text/javascript" src="jwplayer.js"></script>

Here's a simple, clean example of how to embed the player:

http://misterneutron.com/JW6video/

Ethan Feldman

JW Player Support Agent  
0 rated :

Please provide a link.

karamjeets

User  
0 rated :

First of all Thank you very much for the comments. Guys I haven't deployed my app cz it's in developing stage. mp4-format is working fine with Google-chrome, problem is with FF, Here is the code I did exactly what you guys suggested, simple issue persist.

<!DOCTYPE html>
<head>
<meta charset='UTF-8' />
<meta content="video/mp4" http-equiv="Content-Type" />
<script type="text/javascript" src="./jwplayer.js"></script>
<script type="text/javascript">
jwplayer.key="4XPSjXmKwGUbplUirTudsGdZywcrG06HXNbF8cZ04oGf8s7qgzyuYw==";
</script>
</head>
<body>
<div id='videoElement'>Loading the player ...</div>
<script type='text/javascript'>
jwplayer('videoElement').setup({
file: 'http://video.contentapi.ws/As_Above_So_Below_Brings_New_Depths_To_Horror.mp4',
height: 360,
width: 640
});
</script>
</body>
</html>

Ethan Feldman

JW Player Support Agent  
0 rated :

The code looks fine to me, I would need to see a link in order to debug properly. However, I don’t think this line will work at all:

<meta content="video/mp4" http-equiv="Content-Type" />

MisterNeutron

User  
0 rated :

If it works in Chrome but fails in Firefox, I'll wager that it's a MIME type problem. But without a live page to look at, we can't tell. Why can't you put up a demo page somewhere?

This question has received the maximum number of answers.