Attila,
It is a relative path.
The true path is
/usr/local/apache/sites/name/domainname.com/htdocs/stream/terminator.flv
but with Red5, oflaDemo puts the default for streaming in
/opt/red5/dist/webapps/oflaDemo/streams
so we have a symlink for /opt/red5/dist/webapps/oflaDemo/streams to
/usr/local/apache/sites/name/
there is also a symlink for /usr/local/apache/sites/name/domainname.com to
/usr/local/apache/sites/name/domainnamecom so that both paths function:
/usr/local/apache/sites/name/domainname.com/htdocs/stream/terminator.flv
/usr/local/apache/sites/name/domainnamecom/htdocs/stream/terminator.flv
as well as the following paths function:
/opt/red5/dist/webapps/oflaDemo/streams/domainname.com/htdocs/stream/terminator.flv
/opt/red5/dist/webapps/oflaDemo/streams/domainnamecom/htdocs/stream/terminator.flv
so here is what we have tried:
domainname.com/htdocs/stream/terminator.flv
./domainname.com/htdocs/stream/terminator.flv
http://domainname.com/htdocs/stream/termintor.flv (we knew this would not
function as htdocs is ignored on our apache setup)
http://domainname.com/stream/termintor.flv
Unfortunately none of the above functioned.
But when we changed it back to 'domainnamecom/htdocs/stream/terminator.flv'
it functions.
Any thoughts?
Thanks!
----- Original Message -----
From: "Rkos Attila" <[email protected]>
To: "Open Source Flash Mailing List" <[email protected]>
Sent: Wednesday, March 11, 2009 10:42 AM
Subject: Re: [osflash] Period in path
I'm not sure that I understand it correctly...
Is domainname.com/htdocs/stream/terminator.flv a relative path? If so,
it should work, but you can try by this way:
./domainname.com/htdocs/stream/terminator.flv
If domainname.com is a real domain name and not a folder name, add
http:// at the beginning:
http://domainname.com/htdocs/stream/terminator.flv
Attila
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From: glow <[email protected]>
To: [email protected] <[email protected]>
Date: Wednesday, March 11, 2009, 3:36:02 PM
Subject: [osflash] Period in path
--====----====----====----====----====----====----====----====----====----===--
We are using the default Red5 installation trunk version with JW player.
Just doing a test file to get player functioning properly.
Here is the code that works in an index.html file:
<script type="text/javascript" src="/stream/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('/stream/player.swf','mpl','470','290','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=domainnamecom/htdocs/stream/terminator.flv&streamer=rtmp://xxx.xxx.xxx.xxx:1935/oflaDemo');
so.write('player');
</script>
But we need it to work using the following code:
<script type="text/javascript" src="/stream/swfobject.js"></script>
<div id="player">This text will be replaced</div>
<script type="text/javascript">
var so = new SWFObject('/stream/player.swf','mpl','470','290','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=domainname.com/htdocs/stream/terminator.flv&streamer=rtmp://xxx.xxx.xxx.xxx:1935/oflaDemo');
so.write('player');
</script>
The only difference between the two is the period(.) in path
domainname.com in the second example.
The .flv file is in both locations.
Why won't it run with the period(.) in the path?
Any suggestions?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.10/1995 - Release Date: 03/11/09
08:28:00
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org