Solved

JW Player in a popup stopping parent player

Posted on 2010-09-15
2
900 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

821 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