| Paket | org.osmf.traits |
| Sınıf | public class TraitEventDispatcher |
| Miras Alma | TraitEventDispatcher EventDispatcher Object |
| Alt Sınıflar | MediaPlayer |
| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
| Özellik | Tanımlayan: | ||
|---|---|---|---|
![]() | constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | Object | |
| media : MediaElement
The MediaElement which will be monitored, and whose trait events
will be redispatched. | TraitEventDispatcher | ||
| Yöntem | Tanımlayan: | ||
|---|---|---|---|
Constructor. | TraitEventDispatcher | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | |
![]() |
Olay akışına bir olay gönderir. | EventDispatcher | |
![]() |
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | |
![]() |
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | |
![]() |
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | |
![]() |
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | |
![]() |
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | |
![]() |
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | |
![]() |
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | |
![]() |
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | |
![]() |
Belirtilen nesnenin temel değerini döndürür. | Object | |
![]() |
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher | |
| Olay | Özet | Tanımlayan: | ||
|---|---|---|---|---|
![]() | [broadcast olayı] Flash Player veya AIR uygulaması işletim sistemi odağına gelip etkin olduğunda gönderilir. | EventDispatcher | ||
| Dispatched when an alternative audio stream switch is requested, completed, or has failed. | TraitEventDispatcher | |||
| Dispatched when the autoSwitch property has changed. | TraitEventDispatcher | |||
| Dispatched when the buffering property has changed. | TraitEventDispatcher | |||
| Dispatched when the bufferTime property has changed. | TraitEventDispatcher | |||
| Dispatched when the bytesTotal property has changed. | TraitEventDispatcher | |||
| Dispatched when the canPause property has changed. | TraitEventDispatcher | |||
| Dispatched when the media has completed playback. | TraitEventDispatcher | |||
![]() | [broadcast olayı] Çalışan Flash Player veya AIR uygulaması sistem odağını kaybettiğinde ve etkin olmayan duruma geldiğinde gönderilir. | EventDispatcher | ||
| Dispatched when the displayObject property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the state of the DRMTrait has changed. | TraitEventDispatcher | |||
| Dispatched when the duration property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the isRecording property has changed. | TraitEventDispatcher | |||
| Dispatched when the state of the LoadTrait has changed. | TraitEventDispatcher | |||
| Dispatched when the mediaWidth and/or mediaHeight property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the muted property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the number of alternative audio streams has changed. | TraitEventDispatcher | |||
| Dispatched when the number of dynamic streams has changed. | TraitEventDispatcher | |||
| Dispatched when the pan property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the playing or paused property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when the seeking property of the media has changed. | TraitEventDispatcher | |||
| Dispatched when a dynamic stream switch change occurs. | TraitEventDispatcher | |||
| Dispatched when the volume property of the media has changed. | TraitEventDispatcher | |||
media | özellik |
media:MediaElement| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
The MediaElement which will be monitored, and whose trait events will be redispatched.
Uygulama
public function get media():MediaElement public function set media(value:MediaElement):voidTraitEventDispatcher | () | Yapıcı |
public function TraitEventDispatcher()| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Constructor.
audioSwitchingChange | Olay |
org.osmf.events.AlternativeAudioEventözellik AlternativeAudioEvent.type =
org.osmf.events.AlternativeAudioEvent.AUDIO_SWITCHING_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.6 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when an alternative audio stream switch is requested, completed, or has failed.
Dispatched when the switching state of the alternative audio stream has changed. Usually for any successful switching operation, two AUDIO_SWITCHING_CHANGE events will be triggered. One when the switch operation starts ( theswitching
property will be set to true ) and one when the operation ends ( the
switching property will be set to false ).
autoSwitchChange | Olay |
org.osmf.events.DynamicStreamEventözellik DynamicStreamEvent.type =
org.osmf.events.DynamicStreamEvent.AUTO_SWITCH_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the autoSwitch property has changed.
bufferingChange | Olay |
org.osmf.events.BufferEventözellik BufferEvent.type =
org.osmf.events.BufferEvent.BUFFERING_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the buffering property has changed.
bufferTimeChange | Olay |
org.osmf.events.BufferEventözellik BufferEvent.type =
org.osmf.events.BufferEvent.BUFFER_TIME_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the bufferTime property has changed.
bytesTotalChange | Olay |
org.osmf.events.LoadEventözellik LoadEvent.type =
org.osmf.events.LoadEvent| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the bytesTotal property has changed.
canPauseChange | Olay |
org.osmf.events.PlayEventözellik PlayEvent.type =
org.osmf.events.PlayEvent.CAN_PAUSE_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the canPause property has changed.
complete | Olay |
org.osmf.events.TimeEventözellik TimeEvent.type =
org.osmf.events.TimeEvent.COMPLETE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the media has completed playback.
The TimeEvent.COMPLETE constant defines the value of the type property of the event object for a complete event.displayObjectChange | Olay |
org.osmf.events.DisplayObjectEventözellik DisplayObjectEvent.type =
org.osmf.events.DisplayObjectEvent.DISPLAY_OBJECT_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the displayObject property of the media has changed.
drmStateChange | Olay |
org.osmf.events.DRMEventözellik DRMEvent.type =
org.osmf.events.DRMEvent.DRM_STATE_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10.1, AIR 1.5 |
Dispatched when the state of the DRMTrait has changed.
The DRMEvent.DRM_STATE_CHANGE constant defines the value of the type property of the event object for a change to the drmState of a DRMTrait.durationChange | Olay |
org.osmf.events.TimeEventözellik TimeEvent.type =
org.osmf.events.TimeEvent.DURATION_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the duration property of the media has changed.
isRecordingChange | Olay |
org.osmf.events.DVREventözellik DVREvent.type =
org.osmf.events.DVREvent.IS_RECORDING_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10.1, AIR 1.5 |
Dispatched when the isRecording property has changed.
loadStateChange | Olay |
org.osmf.events.LoadEventözellik LoadEvent.type =
org.osmf.events.LoadEvent.LOAD_STATE_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the state of the LoadTrait has changed.
The LoadEvent.LOAD_STATE_CHANGE constant defines the value of the type property of the event object for a loadStateChange event.mediaSizeChange | Olay |
org.osmf.events.DisplayObjectEventözellik DisplayObjectEvent.type =
org.osmf.events.DisplayObjectEvent.MEDIA_SIZE_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the mediaWidth and/or mediaHeight property of the
media has changed.
mutedChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.MUTED_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the muted property of the media has changed.
numAlternativeAudioStreamsChange | Olay |
org.osmf.events.AlternativeAudioEventözellik AlternativeAudioEvent.type =
org.osmf.events.AlternativeAudioEvent.NUM_ALTERNATIVE_AUDIO_STREAMS_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.6 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the number of alternative audio streams has changed.
Dispatched when the number of available alternative audio streams has changed..numDynamicStreamsChange | Olay |
org.osmf.events.DynamicStreamEventözellik DynamicStreamEvent.type =
org.osmf.events.DynamicStreamEvent.NUM_DYNAMIC_STREAMS_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the number of dynamic streams has changed.
The DynamicStreamEvent.NUM_DYNAMIC_STREAMS_CHANGE constant defines the value of the type property of the event object for a numDynamicStreamsChange event.panChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.PAN_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the pan property of the media has changed.
playStateChange | Olay |
org.osmf.events.PlayEventözellik PlayEvent.type =
org.osmf.events.PlayEvent.PLAY_STATE_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the playing or paused property of the media has changed.
seekingChange | Olay |
org.osmf.events.SeekEventözellik SeekEvent.type =
org.osmf.events.SeekEvent.SEEKING_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the seeking property of the media has changed.
switchingChange | Olay |
org.osmf.events.DynamicStreamEventözellik DynamicStreamEvent.type =
org.osmf.events.DynamicStreamEvent.SWITCHING_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when a dynamic stream switch change occurs.
The DynamicStreamEvent.SWITCHING_CHANGE constant defines the value of the type property of the event object for a switchingChange event.volumeChange | Olay |
org.osmf.events.AudioEventözellik AudioEvent.type =
org.osmf.events.AudioEvent.VOLUME_CHANGE| Dil Sürümü: | ActionScript 3.0 |
| Ürün Sürümü: | OSMF 1.0 |
| Çalışma Zamanı Sürümleri: | Flash Player 10, AIR 1.5 |
Dispatched when the volume property of the media has changed.
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import org.osmf.elements.VideoElement;
import org.osmf.events.AudioEvent;
import org.osmf.events.PlayEvent;
import org.osmf.media.MediaPlayerSprite;
import org.osmf.media.URLResource;
import org.osmf.traits.TraitEventDispatcher;
public class TraitEventDispatcherExample extends Sprite
{
public function TraitEventDispatcherExample()
{
super();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var mediaPlayerSprite:MediaPlayerSprite = new MediaPlayerSprite();
var urlResource:URLResource = new URLResource("rtmp://cp67126.edgefcs.net/ondemand/mediapm/strobe/content/test/SpaceAloneHD_sounas_640_500_short");
var videoElement:VideoElement = new VideoElement();
videoElement.resource = urlResource;
var dispatcher:TraitEventDispatcher = new TraitEventDispatcher();
dispatcher.media = videoElement;
dispatcher.addEventListener(AudioEvent.VOLUME_CHANGE, onVolumeChange);
dispatcher.addEventListener(PlayEvent.PLAY_STATE_CHANGE, onPlayStateChange);
addChild(mediaPlayerSprite);
mediaPlayerSprite.media = videoElement;
}
private function onVolumeChange(event:AudioEvent):void
{
trace("onVolumeChange");
}
private function onPlayStateChange(event:PlayEvent):void
{
trace("onPlayStateChange");
}
}
}
Tue Jun 12 2018, 01:09 PM Z
Miras Alınan Genel Özellikleri Gizle
Miras Alınan Genel Özellikleri Göster