Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Media Play and Javascript

Status
Not open for further replies.

madchemist

Programmer
Apr 2, 2002
2
0
0
US
I have an html page that has a WMP file and a flash animation. I want to use javascript to set the media player to play. I honestly think Im having the most problems because Im on a mac. Anyway here are the functions I wrote.... Any idea why they not working? Im new to JS

<script language=javascript >
<!--
var Player = document.mPlayer;

function play_movie(){
Player.Play();
}

function stop_movie(){
Player.Stop();
}

function disp_movie(){
Player.AutoStart=&quot;1&quot;
}


//-->
</script>
 
I don't know too much about media player and especially not on Mac (although it is a fine system especially their latest OSX).


should help you or at least give you a starting point. However I recommend not using WMP at all on your page but sticking everything inside my flash animation instead. Gary &quot; Haran
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top