To send live video from Flash Player, you must attach the video to a NetStream object using NetStream.attachVideo() and to attach live audio using NetStream.attachAudio().
To publish live video to the server, call NetStream.publish(). The publish() method takes an optional URI parameter to which you want to publish the stream, that is a relative URI of the stream name.
For example the if you connect to the http://server/VideoRecording application then publishing with stream.publish("videorecording", "live"), the video is recorded in a file named videorecording.flv and published to the apps/VideoRecording/streams/videorecording.flv.
Clients will connect to the stream as subscribers at http://server/VideoRecording and then call the NetStream.play("videorecording") method.