From: Steve McMillen <[EMAIL PROTECTED]>
Subject: Re: GetPosition() in live stream
I am assuming you are generating a live stream using the g2slta.
If you are, then I would recommend using the OnTitleChange(title),
OnAuthorChange(author) or OnCopyrightChange(copyright) events as your
triggers. You can even pass data down in these events to indicate what
type of event you want to generate or pass parameters down in the
event. Of course, you will have to have data in these fields but you
could always make it not very noticable such as a number in parenteseis
at the end of the field. Also, you an insert TAC events at any point in
a clip though normally every clip has a Title, Author and a Copyright
event at the beginning of the clip. See the "Embedded Player Extended
Functionality Guide" for more info about this. You can see a sample of
the callbacks to javascript at http://demos.real.com/tools/clipinfo.htm.
Another idea would be to use the OnClipBegin() callback to make a call
back to your server to get the time delta that should be applied to the
player time. This seems a little risky though.
If you are not using the slta but rather webcasting a live event, then
the RealProducer ActiveX control is an ideal solution to what you are
trying to do and you can insert events into a live stream from the
client side.
Cheers!
[EMAIL PROTECTED]
RealForum wrote:
>
> From: Nicholas Hart <[EMAIL PROTECTED]>
> Subject: Re: GetPosition() in live stream
>
> This is currently not a supported feature.
>
> At 03:04 PM 2/10/00 -0800, you wrote:
> >From: "Sean Mollit" <[EMAIL PROTECTED]>
> >Subject: GetPosition() in live stream
> >
> >
> >Rather than embed events directly into a realmedia file via the rmmerge
> >function I use a script that polls the player every X seconds using the
> >GetPosition() function. I use an array that contains time-stamped
> >events. When the poll routine finds a match between the player time and
> >an event from the array it executes the event (load image, load html
> >file, jump to new rm file, call a function etc...)
> >
> >This has the advantage of not "hardcoding" your events into the rm file,
> >event information can be quickly changed in a simple js script.
> >
> >This works great with a prerecorded realmedia file. (here comes the
> >question...patience)
> >
> >This would work wonderfully with a live stream except the GetPosition()
> >function returns the time since the user's player started playing the
> >live stream and not when the stream actually started.
> >
> >QUESTION:
> >
> >Is there a way to access a CONSTANT time that's relative to the LIVE
> >STREAM and NOT the PLAYER?
> >Can this be done via javascript, java or ActiveX?
> >
> >ex:
> >if a broadcast started at 4:00 pm and a user loaded the page that
> >launched his embeded player at 4:05 pm,
> >the poll function would return 30,000 milliseconds (5 mins) on it's
> >first pass and NOT 0 milliseconds
> >
> >Does a "time code" exist as part of the streaming protocol?
> >
> >An answer to this would be EXTREMELY USEFUL!!!!
> >
> >
> >Sean Mollitt
> >VP, Product Development
> >Conceptis Technologies Inc.
> >[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. Archives of RealForum can
be found at http://realforum.real.com
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]>