From: "Porter Woodward" <[EMAIL PROTECTED]>
Subject: Preroll of SMIL?

Hi,

OK I've given myself a crash course in SMIL, and Real Text, etc.  It's =
all pretty easy, so I've written some ASP routines to generate SMIL and =
RealText for a given media file (real audio or real video) on the fly...

For example:
----------------SNIP---------------------
<%@ LANGUAGE=3D"VBSCRIPT"%>
<%
   response.expires =3D 1
   response.contenttype =3D "application/smil"

   ' Form Variables
   transcript =3D Request.QueryString("id")
----------------SNIP---------------------

Essentially all this ASP does is generate a SMIL file on the fly based =
on the asset ID that is handed to it.  The asset ID is used to lookup =
details about the media asset in a database - returning MIME type, and =
other details.  These details are then used to output the following =
lines - toward the bottom of the SMIL file:

----------------SNIP---------------------
<par>
<!-- Play these streams concurrently (in parallel).  -->
<video src=3D"<%=3DmediaFile%>'"
     region=3D"video" fill=3D"freeze" />=20
<text src=3D"http://127.0.0.1/rt.asp?id=3D<%=3Dtranscript%>"
     region=3D"ticker" fill=3D"freeze" />
</par>
----------------SNIP---------------------


Essentially the video src is set to mediaFile which is a URL to the =
appropriate RealMedia asset, and the text src is a dynamically generated =
RealText file... =20

OK - this all works, and generates a very usable SMIL file that plays =
back the audio/video and the text which is a time-stamped transcript - =
all synchronized!  One problem is:  Can the SMIL presentation have a =
global starting offset?  Or do I need to control the offset of each =
"src" file in the SMIL presentation manually? =20

Occassionally I need to start the playback of the media file =
(audio/video) mid-stream, and would like the text to be pretty closely =
matched to it.  However, whenever I try to signal the player (via =
javascript) to do a SetPostion (or use the start=3D) it simply starts =
playback from the beginning of both assets - no matter the offset handed =
to it.

Any Tips Appreciated,
Porter Woodward


*******************************************************
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]>

Reply via email to