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

Problems with Jwplayer setup function


Hi All,

Video is not playing I have tried with HTML video tag its working perfect but not play with setup function.

Please see my code
=====================================
function setup_player( containerId )

{

var url ="http://content.jwplatform.com/videos/Agee1j9F.mp4";

jwplayer(container_id).setup({

flashplayer: 'player.swf',

file:url,

height: 400,

width: 600,

'plugins': { 'viral-2': {'oncomplete':'False','onpause':'False','functions':'All'} }

});
}
==================================
Please check is there any problems with my code ?

Thanks.

1 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Your two variables for the ID of the container are different. You are passing “containerId” into your setup_player function, but using “container_id” in your jwplayer.setup() function. Also, we no longer support the use of plugins, but having that line in there should not affect your player.

If that does not resolve it, can you please send me a link to a page where you have the affected player installed?

Thank you.

This question has received the maximum number of answers.