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

Random player pops up before body tag in Wordpress

Hey everybody,
i'm embedding a video playlist through the js api. Everything works well except that a second player appears before the closing </body> tag.

It only shows the first video of the playlist, and the only place where i output the code is in the content ( see link below ), you can see my whole js there whit inspector. The set up is on Wordpress and the video.js script is brought in according to WP standards with wp_enqueue_script.

The second player has the id #botr_TlCVnhp2_k8udxyPL_div which contains my player script id, which i got from the dashboard.

Heres a link to my staging site

Any tips or tricks on how to get rid of the second player?

1 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

On line 475 of your source code, you are using a single-line embed code from your dashboard:

<script type='text/javascript' src='//'></script>

When you use an embed code like this, it embeds a piece of content and player from your account dashboard without having to use any other code, so the three other jwplayer().setup() declarations that you have on your page are setting up three other players. If you are intending just to use a cloud-hosted player library that does not embed content for you, you can find that on the specific player’s detail page on your Account Dashboard.

Please see “Option 2” on our Basic Video Embed support article for more information.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.