Skip to main content
Participant
March 26, 2009
Question

FMS is it working on my server ?

  • March 26, 2009
  • 2 replies
  • 461 views
Hello,

I instaled FMS 3.5, developper edition on linux (Gentoo).
I created a user and group "fms" to start the server.

Server seems working. In fact, with admin cosole (the html page), i can see instances of application (subdirectories of "application" directory).
But when i try to connect to the server with Flash pro (with the code at the bottom), connection fail (NetConnection.Connect.Failed).

I created a directory "tt" as subdirectory of "application" with the owner fms:fms.

Do you have an idea ?
What others tests can i do ?

Thanks.

//####### - 1 - ###########
//Retour vidéo de la webCam
//
fluxLocal = Camera.get();
//fluxLocal.setQuality(8192, 50);
fluxLocal.setMode(240, 180, 15);
fluxAudioLocal = Microphone.get();
ecranRetour.attachVideo(fluxLocal);
var boutonLive = true;
var etatLive = "live";
//
//############# - 2 - ##############
//Diffusion streamée de votre webcam
//
liaison = new NetConnection();
liaison.connect("rtmp:/nsXXXXXX.ovh.net/tt");
//Attention, un seul slash /
fluxDiffusion = new NetStream(liaison);
fluxDiffusion.attachVideo(fluxLocal);
fluxDiffusion.attachAudio(fluxAudioLocal);
//
btEnvoyerDiffusion.onPress = function() {
fluxDiffusion.publish(nomFluxDiffusion, etatLive);
};
btArretDiffusion.onPress = function() {
fluxDiffusion.close();
};
//
//######### - 3 - ###########
//Reception d´un flux streamé
//
fluxReception = new NetStream(liaison);
//
btRecevoirDiffusion.onPress = function() {
ecran.attachVideo(fluxReception);
fluxReception.play(nomFluxReception);
ecoute = new Sound();
ecoute.attachAudio(fluxReception);
};
btArretReception.onPress = function() {
fluxReception.close();
};
//
//########## - 4 - ############
//Informations sur la connexion et les flux
//
couleurDiffusion = new Color(temoinDiffusion);
couleurDiffusion.setRGB(0x666666);
//
fluxDiffusion.onStatus = function(etat) {
if (etat.code == "NetStream.Publish.Start") {
couleurDiffusion.setRGB(0x00FF00);
}
if (etat.code == "NetStream.Unpublish.Success") {
couleurDiffusion.setRGB(0x666666);
}
};
//
couleurReception = new Color(temoinReception);
couleurReception.setRGB(0x666666);
fluxReception.onStatus = function(etat) {
etatReception = etat.code;
if (etat.code == "NetStream.Play.Start" || etat.code == "NetStream.Play.PublishNotify") {
couleurReception.setRGB(0x00FF00);
etatReception = "";
}
if (etat.code == "NetStream.Play.Stop" || etat.code == "NetStream.Play.UnpublishNotify") {
couleurReception.setRGB(0x666666);
etatReception = "Arrêt de la réception ou de la diffusion";
}
};
liaison.onStatus = function(etat) {
trace(etat.code);
if (etat.code == "NetConnection.Connect.Success") {
etatReception2 = "Connexion établie";
}
if (etat.code == "NetConnection.Connect.Failed") {
etatReception2 = "Pas de connexion";
}
};
//
live._alpha = 0;
live.onPress = function() {
boutonLive = !boutonLive;
if (boutonLive) {
etatLive = "record";
this._alpha = 100;
} else {
etatLive = "live";
this._alpha = 0;
}
};

    This topic has been closed for replies.

    2 replies

    March 27, 2009
    Seems that the trouble is a missing slash in the server url:

    liaison.connect("rtmp:/nsXXXXXX.ovh.net/tt");

    Should be

    liaison.connect("rtmp://nsXXXXXX.ovh.net/tt");

    (notice the two slashes after the protocol)
    March 27, 2009
    Seems that the trouble is a missing slash in the server url:

    liaison.connect("rtmp:/nsXXXXXX.ovh.net/tt");

    Should be

    liaison.connect("rtmp://nsXXXXXX.ovh.net/tt");

    (notice the two slashes after the protocol)