Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 911
  • Last Modified:

JW Player in a popup stopping parent player



Hi all,

I want to build a page with jw player showing some videos.
Then I would like to have a button next to the player. If you click this button a popup will show containing another video also showing with jw player.

If I do it just like that, I will have two videos playing and sounding. How can I stop the parent video if the popup is clicked?

Thanks a lot!
0
Dada44
Asked:
Dada44
1 Solution
 
sscottiCommented:
Are you using the 4.x or 5.x version.

You probably want to check out the API's for version 4 and 5:

http://developer.longtailvideo.com/trac/wiki/Player4Api#Sendingevents

The 5.x version can use actionscript, but it can use most of the jscript features also.

You probably want to call a javascript function just before you start playing the second player.

var player = document.getElementById('myplayer');  //myplayer is the parent player
player.sendEvent("STOP","true");  //not sure about that, check the docs

0
 
Dada44Author Commented:
Thanks a ton!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now