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

Single line embded

Hello, i have a problem because i don't succeed to use the jwplayer api with a single line embded code, i put the script line into a box and i want to close it when the video ended.
Thanks for the support

1 Community Answers


JW Player Support Agent  
0 rated :

Hi, there.

If you would like to take some action when the player finishes playing your content, you can do so with the following code:

jwplayer().on("close", function() {
  // use this space to write code to close your box

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.