Click to See Complete Forum and Search --> : Help please!


Vchat20
02-11-2003, 10:59 PM
ok. here is what I want to do. I have a streaming radio station which can play via Realplayer. I want to have 2 images. one of a radio which is off and one which is on. I want the off pic to be up when it isnt playing and on when it is.

and also, I want to have custom play and stop buttons in image form.

email Vchat20@tsohq.com if you can help. thx.

khaki
02-12-2003, 02:22 PM
Hi Vchat

Don't get too excited, because I don't have an answer for you (I'm still having trouble with the question. lol), but I notice that this is the 3rd forum where you have posted this question..

Now maybe this forum (Graphics) will have the audience that can help you, but you should then go to the other forums and post that you have moved this question HERE, so that this can be handled in one place and not scattered around.

It's just a suggestion, but I think it is a courtesy that you should extend to those who take their time to attempt to answer questions for others.

Good luck in your search for your answer.
k

Pixelchik
02-12-2003, 04:30 PM
If I understand you right, you want the graphic to have interactivity with the RealPlayer?

Vchat20
02-12-2003, 05:41 PM
yeah. I have the play and stop images worked out fine. now all I want is to have an image to change depending on the stream status. (ie. on.gif shown when stream is playing. off.gif shown when stream is stopped)

Pixelchik
02-12-2003, 05:58 PM
I figured it would involve some scripting, so check out this 3 page example..I think it may do what you want..maybe?

http://www.streamingmediaworld.com/symm/tutor/jsreal/[/url]

Vchat20
02-12-2003, 06:18 PM
No, I figured that part out. that was a peice of cake.

What I want done is this:
off.gif only shows when the stream isnt playing.
on.gif only shows when the stream is playing.

Pixelchik
02-12-2003, 06:23 PM
The only other way I can imagine is using Flash (swf) to control the Real Player. I don't know if Real Player can control the Flash. Since I know you can use Javascript to control external media from the Flash file. So instead of .gif images, make them SWF images with scripting.

Vchat20
02-12-2003, 06:34 PM
ok. I found some code on the realplayer documentation site. all I know is it tells the webpage what the player is doing. now I need to get it setup to change an image. go here (http://service.real.com/help/library/guides/realone/ScriptingGuide/HTML/realscript.htm) and go to Embedded Player Callbacks > OnStateChange

Pixelchik
02-12-2003, 06:46 PM
Here's more info on the OnStateChange: it might help with loading your on and off images

http://www.mozilla.org/quality/embed/plans/nsIWebProgListTP.html

Vchat20
02-12-2003, 06:52 PM
no, thatuses Mozilla's player. im using Realplayer. shouldnt be too hard. maybe part of the code in a rollover imae would help? ill keep looking, but need help from experienced users here.

Vchat20
02-12-2003, 07:00 PM
ok. I found the rollover image code. now can someone help?

<a href="javascript:void(0)" onMouseOut="RestoreImg()" onMouseOver="SwitchImg('document.BodyImage','document.BodyImage','file:///C|/WINDOWS/Desktop/play.gif')"><img src="file:///C|/WINDOWS/Desktop/stop.gif" name="BodyImage" width="75" height="75" alt="Image" border="0"></a>

khaki
02-12-2003, 07:06 PM
Hey Vchat -

Your getting the first help you have
EVER had on this question, and then
you dismiss Pixelgirl's assistance by
asking for more experienced users
to help you?

Now I'm sorry that I went through all
of your other posts of this question
(in all of the other forums where you
had posted it) in order to redirect
people to come here to this location
to help you with your question.

I think that you are being rude and
ungrateful, and Pixelgirl would be a
far better person than me if she
continues to care about your solution
at all.

I'll probably cool-off in a while,
but I'm pretty mad right now...
k (!)

Vchat20
02-12-2003, 09:22 PM
well, im just stating facts. im not being mean. im just saying, the advice she gave me was for a totally different browser and player then I was using.

Vchat20
02-13-2003, 08:19 AM
ok. I managed to try and make some code out of what very little knowledge I have. maybe somebody could revise it for me?

<script language="javascript">

document.listen.OnStateChange(int32 2, int32 3).write("<img src="images/on.gif">")

document.listen.OnStateChange(int32 3, int32 0).write("<img src="images/off.gif">")

</script>

Pixelchik
02-14-2003, 05:11 PM
Like I said before, maybe Flash/SMIL is your answer? See this Real Form:

http://realforum.real.com/cgi-bin/realforum/wwwthreads.pl

Vchat20
02-14-2003, 10:05 PM
Only problem is I dont know any flash.