App Instance Streaming Video from Another App Instance
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > App Instance Streaming Video from Another App Instance




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-09-06 10: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






[ Post a follow-up to this message ]



    Re: App Instance Streaming Video from Another App Instance  
malato al terminale


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-14-06 10:45 PM

On 3/9/06, Brandon Krakowsky/MTC <Brandon_Krakowsky-1kLVSyq0wur/WnwTtj1/UIFT
Lv+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






[ Post a follow-up to this message ]



    Re: App Instance Streaming Video from Another App Instance  
Brandon Krakowsky/MTC


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-06 01:45 AM

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






[ Post a follow-up to this message ]



    RE: App Instance Streaming Video from Another App Instance  
Stefan Richter


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-15-06 12:45 PM

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






[ Post a follow-up to this message ]



    RE: App Instance Streaming Video from Another App Instance  
Brandon Krakowsky/MTC


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register