Paket | org.osmf.net |
Klass | public class NetConnectionFactory |
Arv | NetConnectionFactory NetConnectionFactoryBase EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
NetConnectionFactory is stateless. Multiple parallel create() requests may be made. A hash of the resource URL is used as a key to determine which NetConnections may be shared.
Egenskap | Definieras med | ||
---|---|---|---|
connectionAttemptInterval : Number | NetConnectionFactory | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
timeout : Number | NetConnectionFactory |
Metod | Definieras med | ||
---|---|---|---|
NetConnectionFactory(shareNetConnections:Boolean = true)
Constructor. | NetConnectionFactory | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Closes the given NetConnection. | NetConnectionFactoryBase | ||
Begins the process of creating a new NetConnection and establishing the connection. | NetConnectionFactoryBase | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Metod | Definieras med | ||
---|---|---|---|
The factory function for creating a NetConnection. | NetConnectionFactory | ||
Generates a key to uniquely identify each connection. | NetConnectionFactory | ||
createNetConnectionURLs(url:String, urlIncludesFMSApplicationInstance:Boolean = false):Vector.<String>
Assembles a vector of URLs that should be used during the connection
attempt. | NetConnectionFactory |
connectionAttemptInterval | egenskap |
timeout | egenskap |
NetConnectionFactory | () | Konstruktor |
public function NetConnectionFactory(shareNetConnections:Boolean = true)
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
ParametrarshareNetConnections:Boolean (default = true ) — Boolean specifying whether created NetConnections
may be shared or not. The default is true.
|
createNetConnection | () | metod |
protected function createNetConnection():NetConnection
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
The factory function for creating a NetConnection.
ReturnerarNetConnection — An unconnected NetConnection.
|
Relaterade API-element
createNetConnectionKey | () | metod |
protected function createNetConnectionKey(resource:URLResource):String
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Generates a key to uniquely identify each connection. This key is used to determine whether a particularly URLResource can share an existing NetConnection. If the keys for two URLResources are identical, then they can share the same NetConnection. By default, this method returns a String consisting of the protocol, host, port, and FMS application name.
Parametrar
resource:URLResource — a URLResource
|
String — a String hash that uniquely identifies the NetConnection
|
createNetConnectionURLs | () | metod |
protected function createNetConnectionURLs(url:String, urlIncludesFMSApplicationInstance:Boolean = false):Vector.<String>
Assembles a vector of URLs that should be used during the connection attempt. The default protocols attempted when a "rtmp" connection is specified are "rtmp", "rtmps", and "rtmpt". When a "rtmpe" connection is requested, both "rtmpe" and "rtmpte" protocols are attempted. When "rtmps","rtmpt" or "rtmpte" are requested, only those protocols are attempted. The default ports are 1935, 443 and 80. If a specific port is specified in the URL, then only that port is used. Subclasses can override this method to change this default behavior.
Parametrar
url:String — The URL to be loaded.
| |
urlIncludesFMSApplicationInstance:Boolean (default = false ) — Indicates whether the URL includes
the FMS application instance name. See StreamingURLResource for more info.
|
Vector.<String> |
Tue Jun 12 2018, 01:40 PM Z