Macromedia Flash Server - App Instance Streaming Video from Another App Instance

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > March 2006 > App Instance Streaming Video from Another App Instance





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author App Instance Streaming Video from Another App Instance
Brandon Krakowsky/MTC

2006-03-09, 5:45 pm

I'm sure this has been discussed before. If I have a particular App
Instance which streams some flv files, it will default to the "App Name"
folder, inside the "streams" folder. From that same App Instance, can I
stream flv files in the "_definst_" folder?

I'm going to have several App Instances that need to access the same flv
files. I'm trying to avoid copying the same files to multiple stream
folders.

I tried changing the directory like this:
netStream.play(../_definst_/streaming file);

Doesn't seem to work.

Thanks,
Brandon
________________________________________
_______
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

malato al terminale

2006-03-14, 5:45 pm

On 3/9/06, Brandon Krakowsky/MTC <Brandon_Krakowsky-1kLVSyq0wur/WnwTtj1/UIFTLv+wk40W@public.gmane.org>
wrote:
>
> I'm sure this has been discussed before. If I have a particular App
> Instance which streams some flv files, it will default to the "App Name"
> folder, inside the "streams" folder. From that same App Instance, can I
> stream flv files in the "_definst_" folder?
>
> I'm going to have several App Instances that need to access the same flv
> files. I'm trying to avoid copying the same files to multiple stream
> folders.
>
> I tried changing the directory like this:
> netStream.play(../_definst_/streaming file);
>
> Doesn't seem to work.
>
> Thanks,
> Brandon
>


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

Brandon Krakowsky/MTC

2006-03-14, 8:45 pm

Thank you very much. I discovered that the default streams directory
could be specified.

Thanks,
Brandon
________________________________________
_______
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

Stefan Richter

2006-03-15, 7:45 am

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.gmane.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

Brandon Krakowsky/MTC

2006-03-15, 7:45 am

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.gmane.org>


To
"'FlashComm Mailing List'" <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.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.gmane.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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com