Language Version : | ActionScript 3.0 |
Product Version : | OSMF 1.6 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The SMPTETTProxyElement class is a wrapper for the media supplied.
It's purpose is to override the loadable trait to allow the retrieval and
processing of an Timed Text file used for captioning.
protected var _mediaPlayer:MediaPlayer
protected var _wasPaused:Boolean = false
protected var _wasPlaying:Boolean = false
protected var captionElementsDisplayed:Dictionary
continueLoadOnFailure:Boolean
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | OSMF 1.6 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Specifies whether or not this class should continue loading
the media element when the captioning document
fails to load.
Implementation public function get continueLoadOnFailure():Boolean
protected var loadTrait:SMPTETTLoadTrait
mediaElement:MediaElement
[read-only]
Language Version : | ActionScript 3.0 |
Product Version : | OSMF 1.6 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
The MediaElement for which this ProxyElement serves as a proxy.
Implementation public function get mediaElement():MediaElement
proxiedElement:MediaElement
[override]
Implementation public function get proxiedElement():MediaElement
public function set proxiedElement(value:MediaElement):void
protected var totalCaptionElementsToDisplay:uint = 0
public function SMPTETTProxyElement(proxiedElement:MediaElement = null, continueLoadOnFailure:Boolean = true)
Language Version : | ActionScript 3.0 |
Product Version : | OSMF 1.6 |
Runtime Versions : | Flash Player 10, AIR 1.5 |
Constructor.
Parameters | proxiedElement:MediaElement (default = null ) — Specifies whether or not the
class should continue the load process if the captioning
document fails to load. The default value is true .
|
|
| continueLoadOnFailure:Boolean (default = true )
|
protected function addEachCaptionToMetaData(document:CaptioningDocument, SMPTETTMetadata:TimelineMetadata):void
Parameters
protected function addLoadTraitListeners(trait:SMPTETTLoadTrait):void
Parameters
protected function addMetaDataTimelineMarkers():void
protected function addToParallelElement(parallelElement:ParallelElement, p_captioningMediaElement:CaptioningMediaElement):void
Parameters
protected function createLoadTrait(smptettLoader:SMPTETTLoader, urlResource:URLResource):SMPTETTLoadTrait
Parameters
Returns protected function flagCaptionElementAsDisplayed(captionElement:CaptionElement):void
Parameters
protected function getOrCreateTimelineMetaData():TimelineMetadata
Returns protected function onLoadStateChange_Error(event:LoadEvent):void
Parameters
protected function pauseMediaPlayerDuringLoadCaptions():void
protected function regionSpriteAddMediaElement(document:CaptioningDocument, i:uint, p_captioningMediaElement:CaptioningMediaElement):void
Parameters
protected function updateEndTimetoMediaDuration(smptettLoader:SMPTETTLoader):void
Parameters
public static const DEBUG:Boolean = false
public static const MEDIA_ERROR_INVALID_PROXIED_ELEMENT:int = 2201
Constant for the MediaError that is triggered when the proxiedElement
is invalid (e.g. doesn't have the captioning metadata).
Fri May 6 2016, 10:06 AM +05:30