From: Steve McMillen <[EMAIL PROTECTED]>
Subject: Re: G2 Player command-line
References: <001301bf172f$0de24e60$[EMAIL PROTECTED]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-UIDL: b380282652c276ff7874ac13f93da0a7
The embedded [web browser] player has JavaScript and ActiveX control
methods that allow you to get callbacks when a RealPlayer error occurs.
You could then use Javascript to take corrective Action. To do this you
need to set the 'SetWantErrors()' to true. I believe when you register
to get errors, the player will not even invoke a dialog box for the
user. Of course, this requires running the player in a browser. See
details in the 'Embedded RealPlayer Extended Functionality Guide' at:
http://service.real.com/help/library/guides/extend/embed.htm
or you can download the manual by going to:
http://service.real.com/help/library/encoders.html
cheers!
stevemc
Paul Carver wrote:
>
> Forum:
>
> >From another program, I'd like to execute the G2 Player to listen to a live
> broadcast (this is all done automatically).
>
> I do this by simply executing the realplay.exe program file.
>
> If the live broadcast is active, everything is fine. If the broadcast is
> not there, I get the standard error dialog box indicating that the request
> that the requested file is not found.
>
> Since this is all happening automatically, the error dialog just sits up
> there. The next time a live broadcast starts, the player is started again
> (activating the previous instance), but since the error dialog is still up,
> no connection is made (they player just sits there saying "connecting" until
> the error dialog is closed).
>
> I could fire up a browser instead giving it a rtsp url or something, but I
> think the result will be the same.
>
> Is there a way to fire up the player and if an error is detected to either
> close the error dialog or close the player back down?
>
> Paul Carver
> Founder, Executive VP, CTO
> <mailto:[EMAIL PROTECTED]>
*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.
If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:
unsubscribe realforum
or from another account, besides the address you subscribed with:
unsubscribe realforum <[EMAIL PROTECTED]>