The NetConnection object creates a two-way connection between a client and a server. The client can be a application. The server can be a web server, Media Server. Call NetConnection.connect() to establish the connection. Use the NetStream object to send streams of media and data over the connection.


Can be created with method new:

Lib.Media.Net.NetConnection.new()

Creates NetConnection object



Created NetConnection object has properties:

defaultObjectEncoding

[static] The default object encoding for NetConnection objects.

client

Indicates the object on which callback methods are invoked.

connected

[read-only] Indicates whether the application is connected to a server through a persistent connection (true) or not (false).

objectEncoding

The object encoding for this NetConnection instance.

uri

[read-only] The URI passed to the NetConnection.connect() method.

usingTLS

[read-only] Indicates whether a secure connection was made using native Transport Layer Security (TLS) rather than HTTPS.

proxyType

Determines which fallback methods are tried if an initial connection attempt to Media Server fails.

connectedProxyType

[read-only] The proxy type used to make a successful connection to Media Server.


methods:

connect(command, p1, p2, p3, p4, p5)

Creates a two-way connection to an application on Media Server

command - uri string.

p1...p5 - reserved parameters (not in use currently)

close()

Closes the connection that was opened locally or to the server and dispatches a netStatus event with a code property of NetConnection.Connect.Closed. (no implementation, reserved)


Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?