Skip to main content
Mar 19, 2009 10:12 AM UTC
Answered

can't publish in FMS 3.5

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 is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Mar 20, 2009 9:52 PM UTC
    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

    2 replies

    Correct answer
    Mar 20, 2009 9:52 PM UTC
    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
    Translate
    Mar 22, 2009 3:11 PM UTC
    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
    Translate