Skip to main content
Participant
March 24, 2011
Answered

FMS 4/AS3: Publishing works, recording doesn't

  • March 24, 2011
  • 1 reply
  • 1719 views

Hi,

I'm currently having an issue with FMS4 developer edition on both Linux (x64) and Windows XP (x86).

When I stream a webcam using ns.publish("foobar", "live") I can watch the live stream on another client, however when i use ns.publish("foobar", "record"); neither broadcasting nor recording works.

Using the "live" parameter the client appears in the log files and in the administration console as "publishing", using "record" the client appears as "idle".

Is there anything I need to configure besides LIVE_DIR in fms.ini?

Is this a restriction in the developer edition?

Is there something else I'm missing?

Here is the relevant part of the code (condensed):

--------------------------------------------------------------------

var camLive:Camera = Camera.getCamera();
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
var ns:NetStream;
nc.connect("rtmp://192.168.1.63/live/");

function netStatusHandler(event:NetStatusEvent):void {
     if (event.info.code == "NetConnection.Connect.Success") {
          ns = new NetStream(nc);
          ns.attachCamera(camLive);
          ns.publish("foobar", "record");
     }
}

--------------------------------------------------------------------

Thanks in advance!

Fabian Kochem

Message was edited by: fkochem (formatting)

    This topic has been closed for replies.
    Correct answer SE_0208

    The problem here is that you are trying to publish in record mode to "live" application - "live" application is for "live" publish only and so is "vod" for serving Video on Demand.

    If you want to test recording, create custom application in applications folder of FMS and then try your scenario. Its matter of minute.

    Create folder called "test" (give proper permission if its Linux machine - for test purpose give full permission 777). Now just change the URI in your client code to connect to "test" instead of "live" - nc.connect("rtmp://192.168.1.63/test");

    Note: I would suggest please refrain give actual IP address of your machines - just to be on safer side.

    1 reply

    SE_0208Correct answer
    Participating Frequently
    March 25, 2011

    The problem here is that you are trying to publish in record mode to "live" application - "live" application is for "live" publish only and so is "vod" for serving Video on Demand.

    If you want to test recording, create custom application in applications folder of FMS and then try your scenario. Its matter of minute.

    Create folder called "test" (give proper permission if its Linux machine - for test purpose give full permission 777). Now just change the URI in your client code to connect to "test" instead of "live" - nc.connect("rtmp://192.168.1.63/test");

    Note: I would suggest please refrain give actual IP address of your machines - just to be on safer side.