  | |  RE: [Flashcoders] Problems controlling windows media player from
flash?? | RE: [Flashcoders] Problems controlling windows media player from
flash??
2004-02-17 - By g.wygonik
Back hey brian
the reason that is happening stems from how getURL with the
"javascript: " part is handled by IE. what happens is that IE sees this
as a page component changing the page location (getURL) and stops all
media that 's on screen in anticipation of changing locations.
if you type:
javascript:muteVideo();
into the URL bar in IE while a movie is playing back, it should exhibit
the same behaviour.
the workaround is to use FSCommand. you can see it using FSCommand here:
http://artificialcolors.com/experiments/video/
hth
g.
-- --Original Message-- --
From: studioclassics [mailto:briank@(protected)]
Sent: Tue 2/17/2004 9:21 PM
To: flashcoders@(protected)
Cc:
Subject: [Flashcoders] Problems controlling windows media player from
flash??
I 'm having trouble controlling a windows media player movie using the getURL
action in flash. Here is how I have it set up:
1. I 've embedded a media player in the html and have named it "MediaPlayer ".
2. Then I created a number of javascript functions to control the player.
The mute function looks like this:
function muteVideo(){
MediaPlayer.settings.mute = true;
}
3. In the actionscript of the flash controller, I call the function this
way:
getURL( "javascript: muteVideo() ");
4. However, when I trigger this, it mutes the video but it also stops
playback.
When I call the same function from a link on the html page itself, the works
mute correctly and does not stop playback.
I have a similar problem when I try to pause and then resume playback. I
suspect that it has to do with how the flash player is communicating with
the javascript function, but since it’s the same function being called in
both cases (from the .html and from flash) why does it execute in different
ways?
Has anyone run across this and/or found a workaround?
Thanks,
Brian
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104551
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |