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

Embedding two videos on a page


Asking the community for advice. I am trying to embed two videos on one page and I can't get them to work.

I am using the following script:

<div id="myElement">Loading the player ...</div>

<!-- JW Player ver. 6.12 -->
<script type="text/javascript">
jwplayer("myElement").setup({
file: "http://www.bdot-inc.com/video-files/Monymusk.mp4",
image: "http://www.bagpipe-tutorials.com/images/video-cover-2.jpg",
skin: "bekle",
title: "Monymusk",
width: "100%",
aspectratio: "16:9",

});
</script>


<div id="myElement2">Loading the player ...</div>

<!-- JW Player ver. 6.12 -->
<script type="text/javascript">
jwplayer("myElement2").setup({
file: "http://www.bdot-inc.com/video-files/thick-lies-the-mist.mp4",
image: "http://www.bagpipe-tutorials.com/images/video-cover-2.jpg",
skin: "bekle",
title: "Thick Lies the Mist on Yonder Hill",
width: "100%",
aspectratio: "16:9",

});
</script>

You can view the page here: http://www.bagpipe-tutorials.com/monymusk.html

Greg

6 Community Answers

MisterNeutron

Best Answer 

It's working fine for me, in all browsers. Your JW Player files, however, are actually JW Player 6.8 instead of JW Player 6.12, so you need to update them (all three - jwplayer.js, jwplayer.html5.js, and jwplayer.flash.swf).

(Off-topic, but on your straight audio tags, BTW, do yourself a favor and simplify to:

<audio style="width: 200px;" src="http://www.bdot-inc.com/audio/Monymusk.mp3" controls preload="auto"></audio>

You don't need any of the other formats or fallbacks. Only very obsolete browsers will fail.)

View in conversation

MisterNeutron

Best Answer  User  
0 rated :

It's working fine for me, in all browsers. Your JW Player files, however, are actually JW Player 6.8 instead of JW Player 6.12, so you need to update them (all three - jwplayer.js, jwplayer.html5.js, and jwplayer.flash.swf).

(Off-topic, but on your straight audio tags, BTW, do yourself a favor and simplify to:

<audio style="width: 200px;" src="http://www.bdot-inc.com/audio/Monymusk.mp3" controls preload="auto"></audio>

You don't need any of the other formats or fallbacks. Only very obsolete browsers will fail.)

Andrew

JW Player Support Agent  
0 rated :

Indeed, this seems to be working for me. Is this not working on a particular browser?

greg.barnes

User  
0 rated :

Thanks for the advice and response. Checked them this morning and they work.

Andrew

JW Player Support Agent  
0 rated :

Awesome! Marking as resolved.

greg.barnes

User  
0 rated :

Apologies for my ignorance. If I upgrade to the latest player, will the older version player be affected?

MisterNeutron

User  
0 rated :

I don't understand the question. If you install the latest player files, your page will use the latest player files. The setup is exactly the same, so you don't need to change anything else, anywhere, unless you're still using JW Player 5 somewhere.

This question has received the maximum number of answers.