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

Two videos on one page


Hello,

I have 2 problems with videos on my site. The first is addressed here.

I am trying to place 2 videos on the same page. I have no java scripting knowledge. Used Komposer to create my site. Purchased both jw player license and premium support license. Not sure how to access support, so I will try here.

Here is the page per my first attempt: http://www.aikenresidentialdesign.com/TheStickFrameBarn1.html

This code worked for 1 video on the page but not 2.

After reviewing similar posts on your site I tried this code:
http://www.aikenresidentialdesign.com/TheStickFrameBarn.html

I don't see me solving this on my own. Will you give me the proper scripting?

Thanks

5 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

When you embed multiple players, each instance of the player needs a unique ID. Here is some code to reference:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <script type="text/javascript" src="http://player.longtailvideo.com/jwplayer.js"></script>
		<title>Multiple</title>
    </head>
	<body>
			<div id="container"></div>
			<script type="text/javascript">
			jwplayer("container").setup({
			file: "http://www.longtailvideo.com/jw/upload/bunny.mp4",
			image: "http://www.longtailvideo.com/jw/upload/bunny.jpg",
			height: 300,
			width: 400,
			controlbar: "bottom"
			 });
			</script>
			<div id="container2"></div>
			<script type="text/javascript">
			jwplayer("container2").setup({
			file: "http://www.longtailvideo.com/jw/upload/bunny.flv",
			image: "http://www.longtailvideo.com/jw/upload/bunny.jpg",
			height: 300,
			width: 400,
			controlbar: "bottom"
			 });
			</script>
			<div id="container3"></div>
			<script type="text/javascript">
			jwplayer("container3").setup({
			file: "http://www.longtailvideo.com/jw/upload/bunny.mov",
			image: "http://www.longtailvideo.com/jw/upload/bunny.jpg",
			height: 300,
			width: 400,
			controlbar: "bottom"
			 });
			</script>
</html>

JW Player

User  
0 rated :

Thank you Ethan. You gave me just enough info, in combination with my limited knowledge, to solve the problem. The other issue I resloved on my own.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

JW Player

User  
0 rated :

Thanks dude..its helps me lot

Ethan Feldman

JW Player Support Agent  
0 rated :

Np

This question has received the maximum number of answers.