From: "Josh Samberg" <[EMAIL PROTECTED]>
Subject: embedded RealPlayer and CGI

I want to create a sequence of RealVideo clips where a user of the site
choose which clips will play and in what order.  The page provides and
interface for the user to make their choices, and then calls a CGI script
which dynamically assembles a .rmm file based on those choices.  If I link
to that script by saying <a
href="create_reel.pl?&speed=asfhi&clips=blahblahblah">, clicking the link
causes the browser to open up an external RealPlayer and play the .rmm that
the script assembles.  We know it works because the player does play the
correct clips and in the correct order.  The same is true if we link through
a javscript function like:

window.location="create_reel.pl?&speed=asfhi&clips=blahblahblah";

Now, here's the problem - we want to play the dynamically created .rmm in an
embedded RealPlayer, and that won't work.  I set up the embed tag so that
it's src property points to the same url from above - which works if we just
give that URL to the browser.  But, that doesn't work for the embedded
player.  We have an embed tag that looks like this:

<embed src="create_reel.pl&speed=asfhi&clips=blahblahblah"
type="audio/x-pn-realaudio-plugin"...>

When the page with the embedded player comes up, the player displays that it
is connecting, and then an error message comes up and it says that it cannot
play that file.  It specifies a path for the file, which to me looks like a
lot of gibberish, but it basically looks OK - it says somethin like
//mem/cgi-bin/create_reel.pl&speed=asfhi&clips=blahblahblah.

Now, I know the link is valid and the file is created correctly because if I
give that link directly to the browser, it opens an external player and
plays it just fine.  For some reason, the embed tag will not accept it for
it's src.  I need to know how to get it to work in an embedded player.


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