How to unpause an embedded movie clip?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
How to unpause an embedded movie clip?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
Michael D.
Guest





Posted: Fri May 13, 2005 4:30 pm    Post subject: How to unpause an embedded movie clip? Reply with quote

I am trying to write a little script to allow a movie clip to be
paused/unpaused. Pausing seems easy enough, but I can't get it to continue
on. I'm totally new to scripting windows media, but know javaScript well
enough I suppose.

Thanks for any help, here's my little script:

var amIPaused = "No";
function PauseMe (){

if (amIPaused == "No") {
Player.controls.pause ();
amIPaused = "Yes";
}

else {
Player.controls.unpause (); // What should I do here???? THANKS!
amIPaused = "No";
}

}

Back to top
Bill Burns
Guest





Posted: Tue May 17, 2005 8:30 am    Post subject: Re: How to unpause an embedded movie clip? Reply with quote

function PlayPauseClick(){
if (bControl == true) {
if (document.MediaPlayer1.PlayState == 2){
document.MediaPlayer1.Pause();
} else {
document.MediaPlayer1.Play();
} else {
if (document.MediaPlayer1.GetPlayState() == 2){
document.MediaPlayer1.Pause();
} else {
document.MediaPlayer1.Play();
}
}

This is cross browser compatible.

Thanks,
Bill


"Michael D." <MichaelD@discussions.microsoft.com> wrote in message
news:854978A6-8731-4B9E-9C13-185CFCED4130@microsoft.com...
Quote:
I am trying to write a little script to allow a movie clip to be
paused/unpaused. Pausing seems easy enough, but I can't get it to
continue
on. I'm totally new to scripting windows media, but know javaScript well
enough I suppose.

Thanks for any help, here's my little script:

var amIPaused = "No";
function PauseMe (){

if (amIPaused == "No") {
Player.controls.pause ();
amIPaused = "Yes";
}

else {
Player.controls.unpause (); // What should I do here???? THANKS!
amIPaused = "No";
}

}
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB