Windows Media Player not responding to Player.controls.stop command
onclick windows media player properties player.controls.stop() doesn’t work doesn’t respond to stop command
I have been working on a fancy player interface that can be integrated into web pages, which features several tabs – each of which stops one player and starts another. I had a script called “shutOffAllPlayers” which stops all players at once, and is called when you click on any tab:
function shutOffAllPlayers ()
{
Player1.controls.stop();
Player2.controls.stop();
Player3.controls.stop();
}
Then in the onClick statement for each tab, I put
Javascript:shutOffAllPlayers ()
This was working well until today, when I upgraded Windows 2000 with a variety of security patches. Now for some reason it no longer works. Once a player starts, it keeps on going, even when another tab is clicked. I tried using
document.Player1.controls.stop
and
Player1.stop
(which worked in earlier versions of Windows Media Player) but neither worked.
However I found that putting the specific stop command right in the onClick statement itself does work. So it now looks like:
"Javascript:Player1.controls.stop; etc..."
which stops the player just as it should.