From: Steve McMillen <[EMAIL PROTECTED]>
Subject: Re: Serving content/advt based on Geography

The first and easiest way to do this is to use the RealServer
Advertising Extension.  Basically you use an ADINSERT tag in your SMIL
code and when new clients connect information about the client is passed
ot the ad server and the ad server can determine, based in its rules,
which ad to insert at that point.  You can get more details about the
RealNetworks Ad server at
http://www.realnetworks.com/products/update/advertising.html.  I am not
sure how you plan on doing your geograhic targeting but many ad servers
can even help you with being able to determine that client "X" is from
region "Y".

The other way to do this is to build your SMIL files dynamically thru
CGI.  However, doing this, you are probabally going to be re-inventing
the wheel.  There are many things that ad servers do that you would have
to write like targeting what ad to what client, reporting and billing,
and inventory management.  To do something like this, you would write a
CGI script that looked something like the over-simplistic example below:

--- begin file/TCL Script ---
#!/usr/bin/tclsh
# Usage: http://<webserver>/cgi-bin/smil.cgi?CA

# might ad some code here to find what ad to server
puts "audio/x-pn-realaudio\n"

puts "<smil>"
puts "<body>"
puts "<par><seq>"
puts "<audio src=\"song1.rm\"/>"
puts "<audio src=\"ad1.$env(QUERY_STRING).rm\"/>"
puts "<audio src=\"song2.rm\"/>"
puts "</seq></par>"
puts "</body>"
puts "</smil>"
--- end file/TCL Script ---

That's it.  The first puts line indicates that the return of this script
should be played by the RealPlayer.  The next lines print the contentxs
of the SMIL files dynamically.  The player will play the songs one after
the other (the outer <par> tag is to force a single timeline instead of
3 timelines one after the other in sequence).

Cheers!

RealForum wrote:
 >
 > From: "Mahesh Joshi" <[EMAIL PROTECTED]>
 > Subject: Serving content/advt based on Geography
 >
 > Hi,
 >
 > We want to customize our  streaming content based on geography.
 > For e.g., when user A from California connects to the stream he will
 > hear song1, advt 1, song 2. whereas user B form New York connects
 > to the same stream he will hear song 2, advt 2, song 4 and so on...
 > (we are talking about SLTA or live  streams here and not on-demand.
 > For live streams, we are talking about customizing advt. based on
 > geography.).
 >
 > Its the same model your cable company uses except the streams are
 > distributed
 > by geography and so they can do it.
 >
 > How does one do this using Real's streaming technology.
 >
 > The only solution I have come up with is having multiple streams
 > one for each geographic region, but this gets to horrendously expensive.
 >
 > I am not a SMIL expert. Can SMIL do this or are there any other solutions?
 >
 > Thanks in advance!
 >
 > Mahesh
 > 

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