Pause flash video using Javascript command
Hello,
Not sure if this is the right forum, but if you can help me it would be much appreciated...
Here's the senario. I'm using DynamicDrive's "Content Glider" - http://www.dynamicdrive.com/dynamici...tentglider.htm
to expand a hidden video...
Everything works great until you click to hide to the video(colapse the div tag) it continues to play in the hidden state.
Is there any way to automatically shut it off when its hidden?
If you go to the link above it will show you the code in which how it works.
Thanks,
Brian
JavaScript callback to flash help needed please...:(
Quote:
Originally Posted by
djr33
Hi, Brian.
Here's the problem: you need to use Javascript to send a command to Flash. That's difficult, to say the least. Everything else is easy enough, but somehow you'll need to connect the two. (It's easy to have flash send a command to Javascript, but since flash isn't, as far as I'm aware, really listening for Javascript commands, the other way is harder).
I'll move this to the Flash section so that someone can (hopefully) tell you how to get flash to listen and pause the video when needed. I also changed the title (please use a descriptive title-- it helps people identify your thread) so hopefully someone will know how to help you in the flash section.
By the way, one other way to do this would be to destroy the flash object so that it doesn't exist on the page any more. That might be easier; but then you'd have to reload it every time you made it appear and it would lose your place if that matters.
Ok, thanks. BTW - sorry about the "No title" bit... won't happen agian.
Thanks,
Brian
Re: Pause flash video using Javascript command
Ok, here's what I've found...
http://www.flash-here.com/tutorials/flash_from_js2.html
The only thing is I need the video to play and stop with the expand and colapse function of the division tag.
the video is set you auto play when the div tag is expanded to just need it to stop when it is hidden.
thanks,
Brian