thanks for the link. unfortunately i'm not sure if that
helps...maybe you could elaborate on your solution a little?
basically i have a set of scripts that allow me to build a tracker
using javascript so i can have a custom design and apply it to
multiple players (works for real player and windows media). in order
for these to work the player has to continually feed the script the
current position of the movie...this allows the slider to track along
and keep the user notified of their current position in the movie
just like the built in tracker does. Here's the script that works
for windows media.......this basically changes the contents of a div
(or whatever) with the id of "state"...obviously you could do
something much more ambitious if you required it...
<script type="text/javascript" event="playstatechange(currentState)">
switch (currentState) {
case 10 : state.innerHTML="Player Ready"; break;
case 9 : state.innerHTML="Transitioning..."; break;
case 8 : state.innerHTML="Media Ended"; break;
case 7 : state.innerHTML="Waiting..."; break;
case 6 : state.innerHTML="Buffering..."; break;
case 5 : state.innerHTML="Rewind..."; break;
case 4 : state.innerHTML="Fast Forward..."; break;
case 3 : state.innerHTML="Playing..."; break;
case 2 : state.innerHTML="Paused"; break;
case 1 : state.innerHTML="Stopped"; break;
}
</script>
On Jun 15, 2006, at 3:46 PM, Michael Lunsford wrote:
I just did something like this with quicktime -- but can't figure
out how to do it for media player. Scratch each other's back?
Property that records whether or not the movie is playing is
GetRate();
On Jun 15, 2006, at 10:23 AM, Brian Campbell wrote:
I'm building a javascript embed function for various media types
including QuickTime. Both RealPlayer and WindowsMedia Player have
an event that alerts of a change the in the state (play, stop,
seek etc.) of the player. I've been trying to find documentation
of its equivalent in QuickTime but i haven't found a thing. Is
this because QT doesn't have this functionality? Basically i want
to do the following...
<script type="text/javascript" for="movieid" event="onStateChange
(state)">
switch(state) {
case 0: document.write('paused'); break;
case 1: document.write('playing'); break;
etc.
}
</script>
Any QT/JavaScript gurus out there that can help? I'm very new to
JS and pretty new to embedding objects as well so you may want to
dumb down your answers :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden