Paquete | org.osmf.net |
Clase | public class NetStreamSwitchManager |
Herencia | NetStreamSwitchManager NetStreamSwitchManagerBase EventDispatcher Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Propiedad | Definido por | ||
---|---|---|---|
_autoSwitch : Boolean | NetStreamSwitchManagerBase | ||
bandwidthLimit : Number
The multiplier to apply to the maximum bandwidth for the client. | NetStreamSwitchManager | ||
_maxAllowedIndex : int | NetStreamSwitchManagerBase |
Método | Definido por | ||
---|---|---|---|
NetStreamSwitchManager(connection:NetConnection, netStream:NetStream, resource:DynamicStreamingResource, metrics:NetStreamMetricsBase, switchingRules:Vector.<SwitchingRuleBase>, autoSwitch:Boolean = true)
Constructor. | NetStreamSwitchManager | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
Initiate a switch to the stream with the given index. | NetStreamSwitchManagerBase | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Método | Definido por | ||
---|---|---|---|
Override this method to provide additional decisioning around
allowing automatic switches to occur. | NetStreamSwitchManager |
bandwidthLimit | propiedad |
NetStreamSwitchManager | () | Información sobre |
public function NetStreamSwitchManager(connection:NetConnection, netStream:NetStream, resource:DynamicStreamingResource, metrics:NetStreamMetricsBase, switchingRules:Vector.<SwitchingRuleBase>, autoSwitch:Boolean = true)
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | OSMF 1.0 |
Versiones de motor de ejecución: | Flash Player 10, AIR 1.5 |
Constructor.
Parámetrosconnection:NetConnection — The NetConnection for the NetStream that will be managed.
| |
netStream:NetStream — The NetStream to manage.
| |
resource:DynamicStreamingResource — The DynamicStreamingResource that is playing in the NetStream.
| |
metrics:NetStreamMetricsBase — The provider of runtime metrics.
| |
switchingRules:Vector.<SwitchingRuleBase> — The switching rules that this manager will use.
| |
autoSwitch:Boolean (default = true )
|
canAutoSwitchNow | () | método |
protected function canAutoSwitchNow(newIndex:int):Boolean
Override this method to provide additional decisioning around allowing automatic switches to occur. This method will be invoked just prior to a switch request. If false is returned, that switch request will not take place.
By default, the implementation does the following:
1) When a switch down occurs, the stream being switched from has its failed count incremented. If, when the switching rules are evaluated again, a rule suggests switching up, since the stream previously failed, it won't be tried again until a duration (30s) elapses. This provides a better user experience by preventing a situation where the switch up is attempted but then fails almost immediately.
2) Once a stream item has 3 failures, there will be no more attempts to switch to it until an interval (5m) has expired. At the end of this interval, all failed counts are reset to zero.
Parámetros
newIndex:int — The new index to switch to.
|
Boolean |
Tue Jun 12 2018, 02:12 PM Z