
101
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Returns
For RTMP and RTMFP connections, a boolean value of true for success; otherwise, false. For AMF connections to
application servers,
true is always returned.
Example
The following example creates an RTMP connection to an application instance on Adobe Media Server:
nc = new NetConnection();
nc.connect("rtmp://ams.example.com/vod/instance1");
NetConnection.farID
nc.farId
Read-only. A String indentifying the RTMFP identify of the Adobe Media Server instance to which this Adobe Media
Server is connected. This property is meaningful only for RTMFP connections. The value of this property is available
only after an RTMFP connection is established.
Availability
Flash Media Server 4
See also
NetConnection.nearID
NetConnection.farNonce
nc.farNonce
Read-only. A String unique to this connection. This value appears to another server as its NetConnection.nearNonce
value. This value is defined for RTMFP, RTMPE, and RTMPTE connections.
Availability
Flash Media Server 4
See also
“NetConnection.nearNonce” on page 102
NetConnection.isConnected
nc.isConnected
Read-only; a boolean value indicating whether a connection has been made. It is set to true if there is a connection to
the server. It’s a good idea to check this property value in an
onStatus() callback function. This property is always
true for AMF connections to application servers.
Availability
Flash Communication Server 1
Example
The following example uses NetConnection.isConnected in an onStatus() handler to check whether a connection
has been made:
Comentarios a estos manuales