| Pakiet | org.osmf.net |
| Klasa | public class NetStreamSwitchManagerBase |
| Dziedziczenie | NetStreamSwitchManagerBase EventDispatcher Object |
| Podklasy | NetStreamSwitchManager, RuleSwitchManagerBase |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| autoSwitch : Boolean
Indicates whether the switching manager should automatically
switch between streams. | NetStreamSwitchManagerBase | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
| currentIndex : uint [tylko do odczytu]
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 | ||
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| _autoSwitch : Boolean | NetStreamSwitchManagerBase | ||
| _maxAllowedIndex : int | NetStreamSwitchManagerBase | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | NetStreamSwitchManagerBase | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
Initiate a switch to the stream with the given index. | NetStreamSwitchManagerBase | ||
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
_autoSwitch | właściwość |
protected var _autoSwitch:Boolean_maxAllowedIndex | właściwość |
protected var _maxAllowedIndex:intautoSwitch | właściwość |
autoSwitch:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Indicates whether the switching manager should automatically switch between streams. The default is true.
Implementacja
public function get autoSwitch():Boolean public function set autoSwitch(value:Boolean):voidcurrentIndex | właściwość |
currentIndex:uint [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Implementacja
public function get currentIndex():uintmaxAllowedIndex | właściwość |
maxAllowedIndex:int| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
The highest stream index that the switching manager is allowed to switch to.
Implementacja
public function get maxAllowedIndex():int public function set maxAllowedIndex(value:int):voidNetStreamSwitchManagerBase | () | Konstruktor |
public function NetStreamSwitchManagerBase()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructor.
switchTo | () | metoda |
public function switchTo(index:int):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | 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.
Parametry
index:int |
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne