Paket | org.osmf.traits |
Klass | public class BufferTrait |
Arv | BufferTrait MediaTraitBase EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
buffering : Boolean [skrivskyddad]
Indicates whether the media is currently buffering. | BufferTrait | ||
bufferLength : Number [skrivskyddad]
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
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
traitType : String [skrivskyddad]
The MediaTraitType for this trait. | MediaTraitBase |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | BufferTrait | ||
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 | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Disposes of any resources used by this trait. | MediaTraitBase | ||
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 | ||
---|---|---|---|
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 |
Händelse | Sammanfattning | Definieras med | ||
---|---|---|---|---|
[utsändningshändelse] Skickas när Flash Player eller AIR får operativsystemfokus och blir aktivt. | EventDispatcher | |||
Dispatched when the trait's buffering property has changed. | BufferTrait | |||
Dispatched when the trait's bufferTime property has changed. | BufferTrait | |||
[utsändningshändelse] Skickas när Flash Player eller AIR förlorar operativsystemfokus och blir inaktivt. | EventDispatcher |
buffering | egenskap |
bufferLength | egenskap |
bufferTime | egenskap |
bufferTime:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Implementering
public function get bufferTime():Number
public function set bufferTime(value:Number):void
BufferTrait | () | Konstruktor |
public function BufferTrait()
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Constructor.
bufferingChangeEnd | () | metod |
protected function bufferingChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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 | () | metod |
protected function bufferingChangeStart(newBuffering:Boolean):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newBuffering:Boolean — New buffering value.
|
bufferLengthChangeEnd | () | metod |
protected function bufferLengthChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Called just after the bufferLength
value has changed.
bufferLengthChangeStart | () | metod |
protected function bufferLengthChangeStart(newSize:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newSize:Number — New bufferLength value.
|
bufferTimeChangeEnd | () | metod |
protected function bufferTimeChangeEnd():void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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 | () | metod |
protected function bufferTimeChangeStart(newTime:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
newTime:Number — New bufferTime value.
|
setBuffering | () | metod |
protected final function setBuffering(value:Boolean):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | 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.
Parametrar
value:Boolean |
setBufferLength | () | metod |
protected final function setBufferLength(value:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Defines the value of the bufferLength property.
This method fires a BufferLengthChangeEvent if the value's change persists.
Parametrar
value:Number |
bufferingChange | Händelse |
org.osmf.events.BufferEvent
egenskap BufferEvent.type =
org.osmf.events.BufferEvent.BUFFERING_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's buffering
property has changed.
bufferTimeChange | Händelse |
org.osmf.events.BufferEvent
egenskap BufferEvent.type =
org.osmf.events.BufferEvent.BUFFER_TIME_CHANGE
Språkversion: | ActionScript 3.0 |
Produktversion: | OSMF 1.0 |
Körningsmiljöversioner: | Flash Player 10, AIR 1.5 |
Dispatched when the trait's bufferTime
property has changed.
Tue Jun 12 2018, 01:40 PM Z