Solved

JW Player in a popup stopping parent player

Posted on 2010-09-15
2
899 Views
Last Modified: 2012-06-27


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
Comment
Question by:Dada44
2 Comments
 
LVL 5

Accepted Solution

by:
sscotti earned 500 total points
ID: 33681718
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
 

Author Closing Comment

by:Dada44
ID: 33689761
Thanks a ton!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question