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 ="";


flashplayer: 'player.swf',


height: 400,

width: 600,

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

Please check is there any problems with my code ?


1 Community Answers


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.