Packageaway3d.materials.utils
Interfacepublic interface IVideoPlayer
ImplementorsSimpleVideoPlayer

Public Properties
 PropertyDefined by
  container : Sprite
[read-only] Provides access to the Video Object
IVideoPlayer
  height : int
Get/Set access to the height of the video object
IVideoPlayer
  loop : Boolean
Indicates whether the player should loop when video finishes
IVideoPlayer
  mute : Boolean
Mutes/unmutes the video's audio.
IVideoPlayer
  pan : Number
Panning
IVideoPlayer
  paused : Boolean
[read-only] Indicates whether the video is paused
IVideoPlayer
  playing : Boolean
[read-only] Indicates whether the video is playing
IVideoPlayer
  soundTransform : SoundTransform
Provides access to the SoundTransform of the video stream
IVideoPlayer
  source : String
The source, url, to the video file
IVideoPlayer
  time : Number
[read-only] Returns the actual time of the netStream
IVideoPlayer
  volume : Number
Master volume/gain
IVideoPlayer
  width : int
Get/Set access to the with of the video object
IVideoPlayer
Public Methods
 MethodDefined by
  
dispose():void
Called if the player is no longer needed
IVideoPlayer
  
pause():void
Temporarily pause playback.
IVideoPlayer
  
play():void
Start playing (or resume if paused) the video.
IVideoPlayer
  
seek(val:Number):void
Seeks to a given time in the video, specified in seconds, with a precision of three decimal places (milliseconds).
IVideoPlayer
  
stop():void
Stop playback and reset playhead.
IVideoPlayer
Property detail
containerproperty
container:Sprite  [read-only]

Provides access to the Video Object

Implementation
    public function get container():Sprite
heightproperty 
height:int  [read-write]

Get/Set access to the height of the video object

Implementation
    public function get height():int
    public function set height(value:int):void
loopproperty 
loop:Boolean  [read-write]

Indicates whether the player should loop when video finishes

Implementation
    public function get loop():Boolean
    public function set loop(value:Boolean):void
muteproperty 
mute:Boolean  [read-write]

Mutes/unmutes the video's audio.

Implementation
    public function get mute():Boolean
    public function set mute(value:Boolean):void
panproperty 
pan:Number  [read-write]

Panning

Implementation
    public function get pan():Number
    public function set pan(value:Number):void
pausedproperty 
paused:Boolean  [read-only]

Indicates whether the video is paused

Implementation
    public function get paused():Boolean
playingproperty 
playing:Boolean  [read-only]

Indicates whether the video is playing

Implementation
    public function get playing():Boolean
soundTransformproperty 
soundTransform:SoundTransform  [read-write]

Provides access to the SoundTransform of the video stream

Implementation
    public function get soundTransform():SoundTransform
    public function set soundTransform(value:SoundTransform):void
sourceproperty 
source:String  [read-write]

The source, url, to the video file

Implementation
    public function get source():String
    public function set source(value:String):void
timeproperty 
time:Number  [read-only]

Returns the actual time of the netStream

Implementation
    public function get time():Number
volumeproperty 
volume:Number  [read-write]

Master volume/gain

Implementation
    public function get volume():Number
    public function set volume(value:Number):void
widthproperty 
width:int  [read-write]

Get/Set access to the with of the video object

Implementation
    public function get width():int
    public function set width(value:int):void
Method detail
dispose()method
public function dispose():void

Called if the player is no longer needed

pause()method 
public function pause():void

Temporarily pause playback. Resume using play().

play()method 
public function play():void

Start playing (or resume if paused) the video.

seek()method 
public function seek(val:Number):void

Seeks to a given time in the video, specified in seconds, with a precision of three decimal places (milliseconds).

Parameters
val:Number
stop()method 
public function stop():void

Stop playback and reset playhead.

Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments