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.


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?
Most shared hosts would provide this address for you, for example client123.myhost.com
Hope this helps.
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
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.
ACTUALLY I KNOW THAT IT IS POSSIBLE BUT THE QUSTION IS HOW TO STORE MOUSE EVENTS
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.
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.
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.
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.
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?
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?
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.
Your articles are informative, close to the point and helpful.
Thanks,
George
how can I connet with appication flash
on : connectionstring
on my own pc no access internet
rtmp://localhost/add
how?
anybody can help me?
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 ...
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
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.
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?
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.
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?
http://tinyurl.com/yv2vt3
Do I install it on a different folder, NOT under IIS and point there an IP?
Please advice.
http://www.flashcomguru.com/tutorials/fcs_iis.cfm
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.
http://www.flashcomguru.com/forum/
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.
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.
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?
prove me wrong!
and this form does not work either...
Instead we get posts promoting a book on FM Server.
Nice scam.
do you really think you will get a decent response after posting comments like this?
See, someone did read your comment.
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
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.
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?
So I use teh camera with adobe premier..no problems, I use the camera with ustream no problems.
Does anyone have any ideas?
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
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!!!!