| Pakiet | org.osmf.traits |
| Klasa | public class BufferTrait |
| Dziedziczenie | BufferTrait MediaTraitBase EventDispatcher Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Use the MediaElement.hasTrait(MediaTraitType.BUFFER) method to query
whether a media element has this trait.
If hasTrait(MediaTraitType.BUFFER) returns true,
use the MediaElement.getTrait(MediaTraitType.BUFFER) method
to get an object of this type.
Powiązane elementy interfejsu API
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
| buffering : Boolean [tylko do odczytu]
Indicates whether the media is currently buffering. | BufferTrait | ||
| bufferLength : Number [tylko do odczytu]
The length of the content currently in the media's
buffer in seconds. | BufferTrait | ||
| bufferTime : Number
The desired length of the media's buffer in seconds. | BufferTrait | ||
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
![]() | traitType : String [tylko do odczytu]
The MediaTraitType for this trait. | MediaTraitBase | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructor. | BufferTrait | ||
![]() | 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 | |
![]() |
Disposes of any resources used by this trait. | MediaTraitBase | |
![]() |
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 | |
![]() |
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 | |
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Called just after buffering has changed. | BufferTrait | ||
Called immediately before the buffering value is changed. | BufferTrait | ||
Called just after the bufferLength value has changed. | BufferTrait | ||
Called immediately before the bufferLength value is changed. | BufferTrait | ||
Called just after the bufferTime value has changed. | BufferTrait | ||
Called immediately before the bufferTime value is changed. | BufferTrait | ||
Indicates whether the trait is in a buffering state. | BufferTrait | ||
Defines the value of the bufferLength property. | BufferTrait | ||
| Zdarzenie | Podsumowanie | Zdefiniowane przez | ||
|---|---|---|---|---|
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja środowiska wykonawczego AIR uzyskuje fokus w systemie operacyjnym i przechodzi w stan aktywny. | EventDispatcher | ||
| Dispatched when the trait's buffering property has changed. | BufferTrait | |||
| Dispatched when the trait's bufferTime property has changed. | BufferTrait | |||
![]() | [zdarzenie broadcast] Wywoływane, gdy program Flash Player lub aplikacja AIR traci fokus w systemie operacyjnym i przechodzi w stan nieaktywny. | EventDispatcher | ||
buffering | właściwość |
bufferLength | właściwość |
bufferTime | właściwość |
bufferTime:Number| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
The desired length of the media's buffer in seconds.
If the passed value is not numerical or negative, it is forced to zero.
The default is zero.
Implementacja
public function get bufferTime():Number public function set bufferTime(value:Number):voidBufferTrait | () | Konstruktor |
public function BufferTrait()| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Constructor.
bufferingChangeEnd | () | metoda |
protected function bufferingChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called just after buffering has changed.
Dispatches the change event.
Subclasses that override should call this method to dispatch the bufferingChange event.
bufferingChangeStart | () | metoda |
protected function bufferingChangeStart(newBuffering:Boolean):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called immediately before the buffering value is changed.
Subclasses implement this method to communicate the change to the media.
Parametry
newBuffering:Boolean — New buffering value.
|
bufferLengthChangeEnd | () | metoda |
protected function bufferLengthChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called just after the bufferLength value has changed.
bufferLengthChangeStart | () | metoda |
protected function bufferLengthChangeStart(newSize:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called immediately before the bufferLength value is changed.
Subclasses implement this method to communicate the change to the media.
Parametry
newSize:Number — New bufferLength value.
|
bufferTimeChangeEnd | () | metoda |
protected function bufferTimeChangeEnd():void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called just after the bufferTime value has changed.
Dispatches the change event.
Subclasses that override should call this method to dispatch the bufferTimeChange event.
bufferTimeChangeStart | () | metoda |
protected function bufferTimeChangeStart(newTime:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Called immediately before the bufferTime value is changed.
Subclasses implement this method to communicate the change to the media.
Parametry
newTime:Number — New bufferTime value.
|
setBuffering | () | metoda |
protected final function setBuffering(value:Boolean):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Indicates whether the trait is in a buffering state. Dispatches
a bufferingChange event if invocation results in the buffering
property changing.
Parametry
value:Boolean |
setBufferLength | () | metoda |
protected final function setBufferLength(value:Number):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Defines the value of the bufferLength property.
This method fires a BufferLengthChangeEvent if the value's change persists.
Parametry
value:Number |
bufferingChange | Zdarzenie |
org.osmf.events.BufferEventwłaściwość BufferEvent.type =
org.osmf.events.BufferEvent.BUFFERING_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's buffering property has changed.
bufferTimeChange | Zdarzenie |
org.osmf.events.BufferEventwłaściwość BufferEvent.type =
org.osmf.events.BufferEvent.BUFFER_TIME_CHANGE| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | OSMF 1.0 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's bufferTime property has changed.
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne