Pacchetto | org.osmf.net |
Classe | public class NetStreamSwitchManagerBase |
Ereditarietà | NetStreamSwitchManagerBase EventDispatcher Object |
Sottoclassi | NetStreamSwitchManager, RuleSwitchManagerBase |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
A NetStreamSwitchManagerBase can work in manual or auto mode. For the former, it will execute upon request the NetStream call that performs the switch. For the latter, it will execute the switch based on its own internal logic.
A NetStreamSwitchManagerBase doesn't dispatch any events indicating state changes. The assumption is that a client will already be listening to events on the NetStream, so there's no need for duplicative events here.
This is an abstract base class, clients must subclass it to implement their own switching logic.
Proprietà | Definito da | ||
---|---|---|---|
autoSwitch : Boolean
Indicates whether the switching manager should automatically
switch between streams. | NetStreamSwitchManagerBase | ||
constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | ||
currentIndex : uint [sola lettura]
Returns the current stream index that is rendering on the client. | NetStreamSwitchManagerBase | ||
maxAllowedIndex : int
The highest stream index that the switching manager is
allowed to switch to. | NetStreamSwitchManagerBase |
Proprietà | Definito da | ||
---|---|---|---|
_autoSwitch : Boolean | NetStreamSwitchManagerBase | ||
_maxAllowedIndex : int | NetStreamSwitchManagerBase |
Metodo | Definito da | ||
---|---|---|---|
Constructor. | NetStreamSwitchManagerBase | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | EventDispatcher | ||
Invia un evento nel flusso di eventi. | EventDispatcher | ||
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | ||
Indica se per un oggetto è definita una proprietà specifica. | Object | ||
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | ||
Indica se la proprietà specificata esiste ed è enumerabile. | Object | ||
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | ||
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | ||
Initiate a switch to the stream with the given index. | NetStreamSwitchManagerBase | ||
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | ||
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | ||
Restituisce il valore di base dell'oggetto specificato. | Object | ||
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher |
_autoSwitch | proprietà |
protected var _autoSwitch:Boolean
_maxAllowedIndex | proprietà |
protected var _maxAllowedIndex:int
autoSwitch | proprietà |
autoSwitch:Boolean
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Indicates whether the switching manager should automatically switch between streams. The default is true.
Implementazione
public function get autoSwitch():Boolean
public function set autoSwitch(value:Boolean):void
currentIndex | proprietà |
currentIndex:uint
[sola lettura] Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Returns the current stream index that is rendering on the client. Note this may differ from the last index requested if this property is queried after a switch has begun but before it has completed.
Implementazione
public function get currentIndex():uint
maxAllowedIndex | proprietà |
maxAllowedIndex:int
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
The highest stream index that the switching manager is allowed to switch to.
Implementazione
public function get maxAllowedIndex():int
public function set maxAllowedIndex(value:int):void
NetStreamSwitchManagerBase | () | Funzione di costruzione |
public function NetStreamSwitchManagerBase()
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Constructor.
switchTo | () | metodo |
public function switchTo(index:int):void
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | OSMF 1.0 |
Versioni runtime: | Flash Player 10, AIR 1.5 |
Initiate a switch to the stream with the given index. Note: If the media is paused, switching will not take place until after play resumes.
Parametri
index:int |
Tue Jun 12 2018, 02:44 PM Z