FlashComGuru Home Imediasee Influxis Uvault Akamai
                                                                                       Forum Index | Active Topics | Register
                                                                                                          List Overview | List Archives
                                                                                                                           About this site | Advertise
 

home

Adobe AIR (8)
Applications (32)
Books & Training (9)
Collaboration (9)
Components (6)
Events (50)
Flash Player (10)
Flex (29)
FMS (70)
General (109)
Hosting (5)
Jobs (13)
Off topic (31)
Press Releases (9)
Site Check (8)
Tools (41)
Videos & Players (54)

Flash On the Beach

Alltop, all the cool kids (and me)

 
This is a short article describing a few common misconceptions about Flash Media Server 2 which also apply to Flash Communication Server MX. I describe why FMS does not need to reside on the same machine as your web server, how rtmp strings are constructed plus one or two other basic concepts which are often misunderstood by users who are new to FMS. You can find the article here. Feel free to use this post to comment on it or add to it.

Comments
[Add Comment]
Link for samples not work. And I have question: FMS can convert mpeg4/QuickTime movies "on the fly"?
# Posted By mrjazz | 11/24/05 11:46 AM
Nice architecture, but are there anyway the FlashComm server can communicate with the Webserver directly, without going through the swf? Like a scenario, where you want to submit sensitive information from the FlashComm server to the Webserver without any chance of data being viewed or manipulated by the client?
# Posted By hdn | 11/30/05 8:59 PM
I have installed FMS2 on Linux and it works ok also the admin panel is connected but now i tried the Sample_guestbook and it give some problems.

I have a connection problem with the sample_guestbook i edit the action in de samples form Macromedia the sample_Guestbook fla file to
_root.main_nc.connect(rtmp:/samples/sample_guestbook/+_roo t.instanceName);

I have the samples dir on www.mydomain.com/samples/sample_guestbook/sample_guestbook.h tm
But the swf do nothing i can't post a message or something.

My second try is to edit the html of the SWF with this script (FlashMediaserver Developing PDF)

//if the url didnt have the domain on it
if (document.URL.indexof(domain.com) == -1) {
//redirect to a version that works
document.url=http://domain.com/page.htm;
}

Also i tried to edit the action in de sample_guestbook fla to this :
(rtmpt://localhost:1935/sample_guestbook/+_root.instanceNa me);

I dont have a firewall so it have to work.

But it did not work either
Who can help me?
# Posted By JOhn | 1/24/06 4:30 PM
thanks flash guru for the information, but i have a question. the fcsrver.domain.com it refers to the name of the server or what. i really dont understand that part. thanks again
# Posted By joe | 7/26/06 11:54 PM
yes, fcserver.domain.com is just an example for a domain. It could also be an IP address.
Most shared hosts would provide this address for you, for example client123.myhost.com

Hope this helps.
# Posted By stoem | 7/27/06 9:27 AM
Hi
Is there a way to retrieve the flv file from flash media servers to our server.I need it to access it or say retrive it to convert it from flv to another format.We tried it with this kind of url rtmp://fcserver.domain.com/app[/appinstance]
but it was not possible to access it.
Is there any way of accessing those flv files stored on flash media server. Can it be done using php?

Thanks in advance

Abhijth
# Posted By Abhijith Babu | 8/10/06 10:40 PM
Abhijth,
you need to map your streams directory to location that's accessible by PHP (if PHP and FMS are on the same box).
It's a little complex to explain but yes, what you are trying to do is possible.
# Posted By Stefan | 8/11/06 9:23 AM
I JUST WANT TO KNOW HOW TO RECORD RUNTIME EVENTS LIKE DASHBOARD U DRAWN PRIVIOUSLY. IF I WANT TO STORE THAT & THEN REPLAY AGAIN IS IT POSSIBLE & HOW TO DO THAT?
ACTUALLY I KNOW THAT IT IS POSSIBLE BUT THE QUSTION IS HOW TO STORE MOUSE EVENTS
# Posted By purva | 11/4/06 8:34 AM
purva, check out NetStream.send()
# Posted By Stefan | 11/4/06 10:02 PM
is FMS can streaming directly swf format ? how can convert swf to flv (don't use tool)
# Posted By smartglorious | 2/2/07 12:59 AM
Hi,
This domain stuff confuses me a little.

Is fcsrver.domain.com a domain which can be accessed using both http and rtmp protocols, or is it only accessibly via rtmp? How is rtmp://fcsrver.domain.com accessible to the outside world? Do you need to edit FMS xml files to make that happen, or do you simply create a web server mapping?

Thanks so much.
# Posted By Marko | 2/3/07 4:13 PM
In the past I have used Real Server/Helix and found it extremly easy to setup due to the exact and detailed info provided. It took only 20 mins and I could serve teh files I needed.
Understandably FMS is differant but is there ANYWHERE that can give real world how to's for this?
Nothing found on-line thus far has been of any help.
Complete and easy to follow ABC steps is whats needed, not paragraphs.
# Posted By james | 2/4/07 5:36 PM
@marko:
only rtmp - FMS is not serving http traffic. The SWF makes a rtmp connection once it's executed inside the browser.

@james: The docs detail most of this. I've also got a book coming out in a few months which details the FMS install under Windows.
# Posted By stoem | 2/7/07 9:06 PM
When you are using the word app, am I to understand to that this is interchangeable with the word flv in some cases? I am attempting to connect to a fms server that serves video. If I attempt the rtmp string in the content path parameter of the flv component the stream plays no problem. However, if I use the NetConnection/Netstream Objects I get nothing. I am baffled and have tried numerous incarnations and mutations of my syntax that I am passing to the NetConnection/NetStream objects. Any advice is greatly appreciated.
# Posted By G | 4/3/07 4:49 PM
no by app I mean application (like rtmp://myserver.com/myapp) or application instance (like rtmp://myserver.com/myapp/myinst).

It's not interchangeable with flv. Any flv is always played through an app and appinstance, even if you use FLVPlayback.

There's probably a bug in your code but the fact that it works with the component is a good sign. Feel free to post your code or send it to me and I'll take a look.
# Posted By Stefan | 4/3/07 5:01 PM
I don't know why when I run client-side file e.x: sample_guestbook.swf, it can't connect to server, but when I open sample_guestbook.fla with Macromedia Flash 8 and run with Test Movie mode, it's ok.
# Posted By Phu Nguyen | 4/5/07 6:35 PM
Hi, I am a student doing project in the university. I face problem about writng a chatroom....can you give me some advice?

The scenario:
I have installed FMS 2 and Flash Pro 8 into server PC, then I create the chat room by the component provided in CommunicationComponent.fla.
The parameter of login button component(called SimpleConnect) have to be inputed an address.
I type "rtmp://cs6116/firstCommApp".
cs6116 is the domain name.
firstCommApp is the folder under C:\Program Files\Macromedia\Flash Media Server 2\applications\
Then save and publish a swf file.
I can open it locally and capture the video camera images as well.
But when I copy the swf file to other PC, I fail to connect the chat room...
I click the login button and no response..
Both PC have flash player installed.
Is there anything wrong in my setup or logic?
# Posted By Comma | 4/6/07 9:20 AM
cs6116 is not a domain name... It needs at least a .com appended.
# Posted By Stefan | 4/6/07 7:35 PM
I have tried cs6116.comp.hkbu.edu.hk and also IP.
But I still cannot login the chat room successfully by using other PC.
Locally, it is okay.
Is there any other thing wrong in my setup or logic?
# Posted By Comma | 4/7/07 10:21 AM
hi comma, i dont know if we have the same problem, my application works in the same pc, but when i pput it in my apache web server and tried to access it from the other pc it doesent work.
i use the ip address for my server pc. i think its because im using a developper version of flash media server 2. please if u had your problem sorted , tell me what was it.
# Posted By rush4878 | 5/4/07 9:01 PM
Hi , go to your firewall settings and open port 1935, it should work
# Posted By rush4878 | 5/20/07 9:11 PM
Hello,

Your articles are informative, close to the point and helpful.

Thanks,
George
# Posted By George S. | 7/10/07 9:26 PM
I am using FMS on localhost
how can I connet with appication flash

on : connectionstring

on my own pc no access internet

rtmp://localhost/add

how?
anybody can help me?
# Posted By Juan | 7/20/07 7:23 AM
again : please :_

Hello

I installed FMS in my pc without internet .

I have a swf that test band . It have : bandwidth_checker.swf?rtmpurl=rtmp:/bandwidth_checker


rtmputl is for connect but there isn't connection in my localhosy ... I don't understan I use win XP sp2 and It's posible with Apache web server

I can't connect a Application with server
please. can you help me ?
I am tired ...
# Posted By Juan | 7/20/07 10:32 AM
Hi,

http://flash.audiovideoweb.com/smilgen.php?sname=i...
this is a media server url, i need to access this by flash player. can you hellp me about this please.

Belal
# Posted By belal hossain | 7/30/07 10:51 AM
Our Flash player will do some authorization with our app server before aloowing media to be streamed. Is it possible to redirect to the streamed media without revealing the URL of the streamed media to the Flash player? Essentially we want to "hide" the rtmp:// location of the FLV file.
# Posted By JoeB | 9/18/07 5:00 PM
i think you may be able to do that sort of thing with FMS3
# Posted By Stefan | 9/18/07 5:10 PM
Hi,
The article is very informative to me. I have configured FMS in a Win2000 server. I used the tutorial_record.fla (the sample file from adobe) to experiment with. I changed the URI to "rtmp://192.168.0.191:1935/tutorial_record/room_01" (created a folder 'tutorial_record' in the application folder too). But i cant record the file to the server. Please look at the code I have.
//#include "NetDebug.as"

// Attach the video device output from 'client_cam'
// to the 'Live_video' video clip. Also get the default microphone
client_cam=Camera.get();
client_mic=Microphone.get();
Live_video.attachVideo(client_cam);

function initStreams() {
   
   // Make a connection to the application on the server
   client_nc = new NetConnection();
   
   // Handle status message
   client_nc.onStatus = function(info) {
      trace("Level: " + info.level + newline + "Code: " + info.code);
   }

   client_nc.connect("rtmp://192.168.0.191:1935/tutorial_record/room_01");

   // Create output stream
   out_ns = new NetStream(client_nc);
   
   // Create input stream
   in_ns = new NetStream(client_nc);
   Replay_video.attachVideo(in_ns);

}

// Connect to server and set up streams
initStreams();

function doRecord() {
   
   if (Record_btn.getLabel() == "Record") {
   
      // Start publishing the camera output as a recorded stream
      out_ns.attachVideo(client_cam);
      out_ns.attachAudio(client_mic);
      out_ns.publish("my_recorded_stream", "record");
      
      // Dont allow the user to play when recording
      Play_btn.setEnabled(false);

      // Change the button label
      Record_btn.setLabel("Stop");

   } else if (Record_btn.getLabel() == "Stop") {

      // Close output stream
      out_ns.close();

      // Now that youre finished recording, allow the user to play
      Play_btn.setEnabled(true);
   
      // Change the button label
      Record_btn.setLabel("Record");
   }
}

function doPlay() {

   in_ns.play("my_recorded_stream");

}

When I mutilate the URI, it traces error messages. But I cant get a connection success message ever. Also I am unable to trace the NetStream information objects too. Please help me. I am behind this project for 2 weeks.
# Posted By Samah | 9/25/07 10:27 AM
I have my fms2 running at 198.168.0.200:
0 0 *:1935 *:* LISTEN

When i turn on the Flash media encoder i put this string:

rtmp://192.168.0.200/myLiveApp/instance1

where myLiveApp is my app.

It returns that can not connect to the fms. What is going on?
# Posted By nick0 | 9/30/07 4:31 AM
your connection string is correct for that IP, so that's not the reason for the failure. You shoudl check that the server is running, the app exists and also check any logs that are generated (installdir/logs).
# Posted By Stefan | 9/30/07 7:29 PM
Finally, it is working. But I'm not sure how it happened!. I can record and play back now. I hav getting the 'Success' message too. I'm listing what i have done for those who have interest.
1) upgraded to FMS 2.0.4
2) made some room on the FMS installed drive (was below 100 MB. I strongly suspect this).
Thanks for all who helped and commented on the subject.
# Posted By Samah | 10/3/07 3:32 PM
I have a basic question, but I can't find info anywhere online and I haven't worked with servers and flash yet. I'm wondering if flash were to try to connect and the connection failed, would it try again or stop?
# Posted By shelbie | 10/5/07 2:58 AM
shelbie, I think in most cases you would not try again after a failed connection. Instea you may try using a tunneled connection (rtmpt) instead of rtmp or try and connect to a backup server. You would also investigate the reason for the failure.
# Posted By Stefan | 10/5/07 7:36 AM
Flash Basics. Yeah, good stuff. What next? People start mentioning scripts and whatnot but does anyone know of a step-by-step for newbies?
I have FMS2 installed as well as IIS. How do I stream a SWF file??? Where do I put it? Do I need to write scripts? How?
# Posted By Hussain | 10/5/07 8:00 AM
may I suggest you pick up a copy of my book
http://tinyurl.com/yv2vt3
# Posted By Stefan | 10/5/07 8:18 AM
Stefan, thanks! It's a theory question, so I don't think the people asking me have an actual issue yet, but they wanted to know if it would retry or fail... I really appreciate your input and blogs like yours are awesome.
# Posted By Shelbie | 10/5/07 2:09 PM
Hello all, I have a Windows 2003 with IIS. I don't know where to install the FMS. Do I install the FMS in a folder under the IIS and then the path will be rtmp://iis_website.com/fmsFolder/app?
Do I install it on a different folder, NOT under IIS and point there an IP?
Please advice.
# Posted By ofek | 10/25/07 9:40 PM
simply install it by accepting all the default settings. FMS is separate from a webserver and unless you tell FMS to bind to port 80 or 443 you should have no issues, they will run in parallel. For more info on running both FMs and IIS on the same port check this article:
http://www.flashcomguru.com/tutorials/fcs_iis.cfm
# Posted By Stefan | 10/25/07 10:12 PM
I know this may not be the best place to ask - but perhaps someone here can answer this or at least direct me to where I can get it answered:

I work with a webhosting company. They would like to be able to design an application that they can integrate into their control panel for their customers - effectively allowing customers to upload video files (whether it be avi or wmv, ect...) convert those to flash and then publish to their websites.

Would Flash Media Server be the program to use for this - could they design it and modify it to be used on a large scale and across multiple hosting servers?

If not, do you have an suggestions as to what could be used for this?

Thanks to anyone that can offer some help here.
# Posted By Grant | 10/25/07 10:21 PM
FMS will not transcode videos for you. The forum will probably provide a more elaborate answer:
http://www.flashcomguru.com/forum/
# Posted By Stefan | 10/25/07 10:24 PM
Hello Stefan,
Good article. I'm a total newbie when it comes to working with FMS and server stuff in general and got tasked with doing something for work. I installed FMS locally at:

C:\Program Files\Macromedia\Falsh Media Server 2

my applications folder is at that path\applications and in there i have a folder called videos.

I tried to connect to FMS in Flash like so:

var nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/videos/");

var ns:NetStream = new NetStream(nc);
vid.attachVideo(ns);

nc.onStatus = function($info:Object):Void
{
   trace("INFO: " + $info.code);
   
   if ($info.code == "NetConnection.Connect.Success")
   {
      playStream();
   }
};

ns.onStatus = function($info:Object):Void
{
   for (var prop in $info) {
      trace("\t" + prop + ":\t" + $info[prop]);
   }

};

function playStream():Void
{
   trace("video: " + vid);
   ns.play("dancers");
}

This traces out the following:

INFO: NetConnection.Connect.Success
video: _level0.vid
   clientid:   112537688
   details:   dancers
   description:   Playing and resetting dancers.
   code:   NetStream.Play.Reset
   level:   status
   clientid:   112537688
   details:   dancers
   description:   Started playing dancers.
   code:   NetStream.Play.Start
   level:   status

but the video does not show up on the stage unless i set the net connection to null and just put ns.play("dancers.flv");

any idea why this is happening? Like i said i'm new to FMS so any help you can give would be greatly appreciated.
# Posted By Matt Przybylski | 10/26/07 9:25 PM
you're connecting ok (but null connects you not to FMS but for a progressive download).

To stream videos you need to place your FLV into a folder /applications/videos/streams/_definst_ and then connect to rtmp://localhost/videos/ as you have.
Video storage locations are a bit confusing on FMS but they are organized by application instance name.
If you wanted to connect to rtmp://localhost/videos/myinstance then your video would have to go into a folder /applications/videos/streams/myinstance instead.

Hope this helps.
# Posted By Stefan | 10/26/07 9:35 PM
Ah, I moved dancers.flv into applications/videos/streams/fmstest/dancers.flv and then connected with rtmp://localhost/videos/fmstest as the path. Worked like a charm, thanks!

Now, just so I understand what is going on here for future reference, why did I have to move dancers.flv into a folder inside of videos called streams and then into another folder for my project?
# Posted By Matt Przybylski | 10/26/07 9:41 PM
the docs have more info on this. Streams are organized by application instance, but there are ways around that too.
# Posted By Stefan | 10/27/07 9:15 AM
I have recently installed FMS on my dedicated server, I can use the media encoder to stream the data to the server. I have been able to connect with no problem but I have been lost in how to set up a way to view the live stream. Sorry I am a noob when it comes to the FMS, I just need a direction to go. Thank you!
# Posted By Chris | 10/31/07 1:54 AM
this flash media server stuff is just unbelievable! it may be easy and simple, but tell me where is a simple tutorial how to use it! but you won't, because no one will probably even read this comment...

prove me wrong!

and this form does not work either...
# Posted By ozz | 11/11/07 1:25 AM
I read your post and I too am waiting for a real responce or a real tutorial.
Instead we get posts promoting a book on FM Server.

Nice scam.
# Posted By James | 11/11/07 1:44 AM
ozz, james,
do you really think you will get a decent response after posting comments like this?

See, someone did read your comment.
# Posted By Stefan | 11/11/07 7:39 PM
1) RTMP PATH LINK DIRECTLY TO FLV?
2) HOW TO AVOID AUDIO STUTTER?

Hi Stefan,

I am trying to stream an flv through a shared FMS hosting server. I insert this rtmp link into the flash component Content Path:
rtmp://eukleia-fcs.fs-server.com/takingcontrol/03vid300.flv

and have uploaded the flv to the flash server. I've uploaded swf and html to my own test hosting here:

http://www.bountycolors.com/eukleia/takingcontrol/...

Strangely this method seems to work sometimes and sometimes not. And sometimes it only shows up after a few days of delay. I have tested several flvs with different data rates, as I always receive audio stuttering.

So my 2 questions are:
1) is this the correct way to link to the FLV or do I need some form of app?

2) why is there a delay of the swf finding the rtmp?

3) how can I best avoid the audio stuttering? I have tried different bit rates and dimensions...

Would be fantastic, if you could give me some tipps!

best,

jas
# Posted By jasminka letzas | 12/12/07 5:44 PM
I am trying to connect to myLiveApp using the tutorial here:http://www.adobe.com/devnet/flashmediaserver/artic...

FMS on a dedicated Remote Server is up and running, ports are open, but when I go into Flash Media Encoder and connect the camera so I can stream, I use
rtmp://domain.com/myLiveApp/testlive
"testlive" being the name I gave the instance in FMS.

I get a cannot connect error - what am I doing wrong?
PS - I am using a router on this side, but with firewall disabled during testing.
# Posted By coskel | 12/31/07 1:36 PM
Hi~ everyone.
I face problem about connecting from other PC to FMS. Can you give me some advice?

I have installed FMS 2 and Flex2 into server PC
I tried "rtmp://IP:1935/App".
IP is my PC IP address.
I can connect it locally.
But when I tried to connect to other PC, I fail to connect.
I click the connect button and no response.
Both PC have flash player installed.
Is there anything wrong in my setup or logic?
# Posted By yoo | 1/15/08 8:35 AM
do you have a firewall running? Try turning it off while you connect.
# Posted By Stefan | 1/15/08 10:25 AM
Do we need to add any scripts to the server to enable authentication?
# Posted By Samantha | 3/7/08 12:21 PM
Ok here we go. I installed the thing on my PC. Installation went fine. First off, I am not a computer tech OK so please rmember this. When i open the software it comes up. I do not understand hpw to locate my server URL and also, I use a sony camcorder. When teh camera is connected vis firewire, it shows that the computer and software is recognizing it but when it comes to showing teh side by side of the camera view, I get an error code saying something is wrong with teh camera.

So I use teh camera with adobe premier..no problems, I use the camera with ustream no problems.

Does anyone have any ideas?
# Posted By charlotte | 4/22/08 10:05 PM
Hi,
I am new to Flash Media server. Like to ask regarding path of "rtmp" i am using flvplayback component of flash to display the flv files dynamically. I am using content path property to specify the rtmp path but its not working. Let me know do I have to place the swf file and the html file in the FMS? I have the swf file and html file in my server.
Let me know if you could help me out or not or even if you didn't understand the query. I need the solution asap.
thnx
# Posted By Riva | 5/7/08 3:47 PM
hello every body!!
Ok I have been reading all the coment and never found any step by step for newbies like the most of us here so any body get a solution for a tutorial.
I am in the middle and jsut dont know what is the problem here, ok let me tell ya!!
I have installed the latest flash media server 3 interactive and tested the sample and followed all adobe tutoril all working fine, the path was rtmp://localhost/vod/sample and i tested it through html and flash cs3 professional wer the videoplayback was created with I even publshed this to my web server (Powweb.com) using ftp program first i thought it will never stream the video just like that with no extention no code nothing thats impossible but it jsut worked fine just like i wen i tested in my localhost i just published the test.html and RunActiveScript and the swf file and it worked very nice with my pc the same pc that holds the flv but wen i went out side to the internet cafe its jsut laoding then a connectionError message shows up i know for sure i need to edit some thing here but i dont know wer and what i would realy love to see this working will be adream came true if any one can make my dream come true its fantastic please dont ignore me if you know my problem solution.
thanks in advance to any one here can help me!!!!
# Posted By ade | 5/20/08 12:45 AM
All I simply want to do with this prohram is to broadcast to Justin.Tv. I need a simple way to do that, what should I put in the FMS URL to do that?
# Posted By Maxim | 7/19/08 8:07 AM