Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

IE6 - Sound continues after close

14 replies [Last post]

Hi, thanks for the support forums.

In IE6, the video plays correctly, but when I press close (using Lightbox), the audio continues to play. This does not happen in Firefox. Here is the code:

<embed
src="http://www.mandomandarin.com/media/videos/mediaplayer.swf"
width="430"
height="360"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="height=356&width=426&file=http://www.mandomandarin.com/media/videos/introduction.flv&searchbar=false&autostart=true&searchbar=false&shownavigation=false">
</embed>

Inside the Header:
<script type="text/javascript" src="http://www.mandomandarin.com/media/videos/swfobject.js"></script>

The page that has the link for the video (pops up on top of this page):

<div class="home_bt">
<a href="movie.html" class="lightwindow page-options" params="lightwindow_width=430,lightwindow_height=360"><img src="movie.gif" border="0" alt="Mando Mandarin Video" /></a>
</div><!--end div HOME_BT-->

---------------------

Also, in Firefox, the movie plays for 2 seconds than restarts and plays all the way through. The above problem does not happen in FF.

Thanks so much!

you have to stop the player before hiding it, to prevent it from continuing playing !
use the javascript api and issue a sendEvent('stop'); - http://www.jeroenwijering.com/?item=Javascript_interaction

Where do I enter the sendEvent('stop'); code? Thanks!

I don't understand any of that, I tried to copy/paste and replace files with my files, but it didn't even play. Can someone please help me. Thanks!

I have exactly the same problem and could not find any issue. Does someone have the solution now ?

Stop the movie by adding a parameter "play"="false" before hiding it.

Smae problem. I am using IE6 and Drupal CMS 6.0 I have listed the videos using swftools and flash node modules , everyting alright but sounds are playing after pressing stop button. I have so many videos and its totally impossible write code in each and every video one by one. what is the simple solution?

any response ?

Does anyone understand this? Where am I adding this:

sendEvent('stop');

or

parameter "play"="false"

Do I add this on the HTML page that contains the video? or Do I add this to the jwbox.js file?

Please help!
Thanks!
L

Hi all,

I had the same problem and fixed it like this:

(note that the code is written using jQuery selectors but it can easily translate into javascript)

if the video player is in some container or lightbox or something like that with a X button to close it, just do this:

$("#button_id").click(function() {
var myVideoPlayer = document.getElementById("myVideoPlayer_id");
myVideoPlayer.sendEvent("PLAY","false");
});

the player will continue to download the video file, using lots of your bandwidth

maybe 'STOP' would be better

my videos are from youtube, so no bandwidth problem :)
Anyway, I'll try STOP.

i meant the user's bandwidth

no point in continuing to download if the player is closed

yes, you're right, I used STOP event and it works, so for others out there:

$("#button_id").click(function() {
var myVideoPlayer = document.getElementById("myVideoPlayer_id");
myVideoPlayer.sendEvent("STOP");
});