?
Solved

JW Player in a popup stopping parent player

Posted on 2010-09-15
2
Medium Priority
?
906 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
sscotti earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

719 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