| Package | org.openvideoplayer.net |
| Interface | public interface INetConnection extends flash.events.IEventDispatcher |
| Implementors | OvpConnection |
| Property | Defined By | ||
|---|---|---|---|
| connected : Boolean [read-only]
Indicates whether the application is connected to a server through a persistent RTMP connection (true) or not (false). | INetConnection | ||
| connectedProxyType : String [read-only]
If a successful connection is made, indicates the method that was used to make it: a direct connection, the CONNECT method, or HTTP tunneling. | INetConnection | ||
| objectEncoding : uint
The object encoding for this NetConnection instance. | INetConnection | ||
| proxyType : String
Determines which fallback methods are tried if an initial connection attempt to the server fails. | INetConnection | ||
| uri : String [read-only]
The URI passed to the NetConnection.connect() method. | INetConnection | ||
| usingTLS : Boolean [read-only]
Indicates whether a secure connection was made using native Transport Layer Security (TLS) rather than HTTPS. | INetConnection | ||
| Method | Defined By | ||
|---|---|---|---|
addHeader(operation:String, mustUnderstand:Boolean = false, param:Object = null):void
Adds a context header to the Action Message Format (AMF) packet structure. | INetConnection | ||
call(command:String, responder:Responder, ... arguments):void
Invokes a command or method on Flash Media Server or on an application server running Flash Remoting. | INetConnection | ||
close():void
Closes the connection that was opened locally or to the server and dispatches a netStatus event with a code property of NetConnection.Connect.Closed. | INetConnection | ||
connect(command:String, ... arguments):void
Creates a bidirectional connection between a Flash Player or an AIR application and a Flash Media Server application. | INetConnection | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when an exception is thrown asynchronously — that is, from native asynchronous code. | INetConnection | |||
| Dispatched when an input or output error occurs that causes a network operation to fail. | INetConnection | |||
| Dispatched when a NetConnection object is reporting its status or error condition. | INetConnection | |||
| Dispatched if a call to NetConnection.call() attempts to connect to a server outside the caller's security sandbox. | INetConnection | |||
| connected | property |
connected:Boolean [read-only] Indicates whether the application is connected to a server through a persistent RTMP connection (true) or not (false).
public function get connected():Boolean| connectedProxyType | property |
connectedProxyType:String [read-only] If a successful connection is made, indicates the method that was used to make it: a direct connection, the CONNECT method, or HTTP tunneling.
public function get connectedProxyType():String| objectEncoding | property |
objectEncoding:uintThe object encoding for this NetConnection instance.
public function get objectEncoding():uint public function set objectEncoding(value:uint):void| proxyType | property |
proxyType:StringDetermines which fallback methods are tried if an initial connection attempt to the server fails.
public function get proxyType():String public function set proxyType(value:String):void| uri | property |
uri:String [read-only] The URI passed to the NetConnection.connect() method.
public function get uri():String| usingTLS | property |
usingTLS:Boolean [read-only] Indicates whether a secure connection was made using native Transport Layer Security (TLS) rather than HTTPS.
public function get usingTLS():Boolean| addHeader | () | method |
public function addHeader(operation:String, mustUnderstand:Boolean = false, param:Object = null):voidAdds a context header to the Action Message Format (AMF) packet structure.
Parameters
operation:String | |
mustUnderstand:Boolean (default = false) | |
param:Object (default = null) |
| call | () | method |
public function call(command:String, responder:Responder, ... arguments):voidInvokes a command or method on Flash Media Server or on an application server running Flash Remoting.
Parameters
command:String | |
responder:Responder | |
... arguments |
| close | () | method |
public function close():voidCloses the connection that was opened locally or to the server and dispatches a netStatus event with a code property of NetConnection.Connect.Closed.
| connect | () | method |
public function connect(command:String, ... arguments):voidCreates a bidirectional connection between a Flash Player or an AIR application and a Flash Media Server application.
Parameters
command:String | |
... arguments |
| asyncError | Event |
flash.events.AsyncErrorEvent.ASYNC_ERRORflash.events.AsyncErrorEvent.ASYNC_ERRORDispatched when an exception is thrown asynchronously — that is, from native asynchronous code.
| ioError | Event |
flash.events.IOErrorEvent.IO_ERRORflash.events.IOErrorEvent.IO_ERRORDispatched when an input or output error occurs that causes a network operation to fail.
| netStatus | Event |
flash.events.NetStatusEvent.NET_STATUSflash.events.NetStatusEvent.NET_STATUSDispatched when a NetConnection object is reporting its status or error condition.
| securityError | Event |
flash.events.SecurityErrorEvent.SECURITY_ERRORDispatched if a call to NetConnection.call() attempts to connect to a server outside the caller's security sandbox.