MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Reference page 102

Client-side actionscript language reference for flash media server 2
Table of Contents

Advertisement

NetStream.publish()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
public publish(name : String [, howToPublish : String] ) : Void
Parameters
A string value that identifies the stream. If you pass
name
stops. Subscribers to this stream must pass this same name when they call
. You don't need to include a file extension for the stream name.
NetStream.play()
An optional string that specifies how to publish the stream. Valid values are
howToPublish
,
"record"
"append"
If you pass
"record"
recorded data to a new file named
subdirectory within the directory containing the server application. If the file already
exists, it is overwritten. For more information on where recorded streams are stored, see
the Description below.
If you pass
"append"
the recorded data to a file named
the directory containing the server application. If no file named
created.
If you omit this parameter or pass
If
.flv exists, it will be deleted.
name
Returns
Nothing.
Description
Method; sends streaming audio, video, and text messages from the client to the Flash Media
Server, optionally recording the stream during transmission. This method is available only to
the publisher of the specified stream.
102
Client-Side ActionScript Language Reference
, and
. The default value is
"live"
for
howToPublish
name.
for
howToPublish
name
"live"
false
"live"
, Flash publishes and records live data, saving the
flv. The file is stored on the server in a
, Flash publishes and records live data, appending
.flv, stored on the server in a subdirectory within
, Flash publishes live data without recording it.
, the publish operation
.
.flv is found, it is
name

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Media server 2

Table of Contents