03-15-06 12:45 PM
Yes, I saw that on the Flash Media List.
Thanks,
Brandon
"Stefan Richter" <stefan-fMeCE+ULXElEfu+5ix1nRw@public.gmane.org>
Sent by: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
03/15/2006 04:31 AM
Please respond to
FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gm
ane.org>
To
"'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@publi
c.gmane.org>
cc
Subject
RE: [FlashComm] App Instance Streaming Video from Another App Instance
You can also use mappings in vhost.xml. I described this to someone on the
Flash Media List yesterday:
You need to get 2 things right, your actual FMS application (bmsb) and
then
the mapping.
First set up your application - usually you keep the streams folder inside
your application's folder, for example /bmsb/streams/...
/bmsb will hold your main.asc, that's correct.
Remember that you need to use the main.asc file that ships with Flash when
you use FLVPlayback. You can find this main.asc in C:\Program
Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\Components\FLVPlayback
Copy it into /bmsb.
Because you will map your streams elsewhere you do not need a /streams
folder (or any flvs) inside bmsb.
I am not sure if C:\WebServer\GlobalMedia\videos\ is the location you want
to run your app from. May I suggest you run your bmsb application wherever
your /applications folder resides. Do you still use the default
applications
folder?
If so, please copy your main.asc to
C:\Program Files\Macromedia\Flash Media Server 2\applications\bmsb
That step should now allow you to connect to the bmsb application but it
won't play any videos yet (because there aren't any inside /streams and no
mapping has yet been set up).
To set up the mapping for bmsb you could use this syntax for example:
<Streams key="virtualKey">myvids;C:\vids</Streams>
Then in order to play a video called autobahn.flv via your application
bmsb
(the video resides in C:\vids) you'd specify (for FLVPlayback)
rtmp://localhost/bmsb/myvids/autobahn.flv
If you have a subfolder inside C:\vids for example C:\vids\sharedvids and
autobahn.flv is in there then use
rtmp://localhost/bmsb/myvids/sharedvids/autobahn.flv
(of course you may want to substitute rtmp://localhost with your own rtmp
address).
FMS looks at this string
rtmp://localhost/bmsb/myvids/sharedvids/autobahn.flv in this way:
- first it connects to your app rtmp://localhost/bmsb
- then it checks for a mapping for myvids and it finds one that points to
C:\vids
- it uses C:\vids and appends /sharedvids and then looks for the .flv file
- it finds it and plays it
Now ANY OTHER APP on your server (or at least on this vhost) can use this
mapping too. It's not tied to bmsb.
Trust me this sounds more complicated than it actually is.
Makes sense? :-)
Stefan
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gman
e.org] On Behalf Of
> malato al terminale
> Sent: 14 March 2006 01:46
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] App Instance Streaming Video from
> Another App Instance
>
> On 3/9/06, Brandon Krakowsky/MTC
> <Brandon_Krakowsky-1kLVSyq0wur/WnwTtj1/UIFTLv+wk40W@public.gmane.org>
> wrote:
> particular App
> the "App Name"
> Instance, can
> the same
>
> you could redefine the streams directory in the
> application.xml for your apps ... or you can do it with some
> server side code. there's an example on the livedocs at
> http://livedocs.macromedia.com/flas...n/00000511.html
> ________________________________________
_______
> FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
________________________________________
_______
FlashComm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
[ Post a follow-up to this message ]
|