Solved

JW Player in a popup stopping parent player

Posted on 2010-09-15
2
896 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
Comment Utility
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
Comment Utility
Thanks a ton!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
radio button value 3 44
Getting AngularJS to work on jsfiddle 7 35
Adding Extra Information box 4 23
Hidden Field Value 10 33
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
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 select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

763 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now