Skip to main content
March 19, 2009
Answered

can't publish in FMS 3.5

  • March 19, 2009
  • 1 reply
  • 513 views
hi every body
I'm using FMS long time ago and I did a lot of work with it. My problem now when I started in my new project I could not able to hear the stream, the stream not recorded on server at all ... I just got a flv file with the stream name and its size just some bytes
Actionscript 3.0 code:
------------------------------
var stream:NetStream = new NetStream(connection);
stream.attachAudio(Microphone.getMicrophone());
stream.publish("flash_stream", "record");
-----------------------------------------
of course I have an opened connection to the server :)

FMS application code:
---------------------------------
application.onConnect = function( client) {
application.acceptConnection( client );
}
-----------------------------
so simple :)

Receiving flash Actionscript 3.0 code (the movie which get the stream):
-----------------------------------------------------------------
var stream:NetStream = new NetStream( connection );
stream.client = new CustomClient();
videoObject.attachNetStream( stream );
stream.play( "flash_stream" );
---------------------------------------------

Please every one ... it is very important ... I don't know why this not work right now :(

I have an old application and unfortunately it works fine at the same server.

My FMS version is 3.5 interactive developer edition

This code don't work in Flex or Flash :(

The server installed on Wondows 2003 Server
    This topic has been closed for replies.
    Correct answer
    You have to use unique NetStream objects for the incoming (publishing) and outgoing (playback) streams. Check out this example in the docs:

    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ff0.html#WSF833CFB5-21FC-412b-B2BB-8946DE3FC189

    Jody

    1 reply

    Correct answer
    March 20, 2009
    You have to use unique NetStream objects for the incoming (publishing) and outgoing (playback) streams. Check out this example in the docs:

    http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d56e-7ff0.html#WSF833CFB5-21FC-412b-B2BB-8946DE3FC189

    Jody
    March 22, 2009
    Thank you tech_writer_00 for your reply

    In fact the Actionscript code is in separated movies, I mean I make the streaming using a movie and play it in another movie.

    Some thing else ... the streaming not recorded on the server at all, I mean if I start publish I found my stream in streams tab in Management Console but it is not recorded well in the streams folder, all what I found is a .flv file with bytes size with my stream name ... "flash_stream" in my example ... when I publish I added "record" parameter in publish method.

    I don't know where is the problem ... but I think the code I write is very strait forward and it should work