Packagecom.adobe.mediacore
Classpublic class MediaPlayerView
InheritanceMediaPlayerView Inheritance flash.display.Sprite



Public Properties
 PropertyDefined By
  height : Number
[override] [write-only]
MediaPlayerView
  stageVideo : StageVideo
[read-only] The associated StageVideo object.
MediaPlayerView
  width : Number
[override] [write-only]
MediaPlayerView
  x : Number
[override] [write-only]
MediaPlayerView
  y : Number
[override] [write-only]
MediaPlayerView
Public Methods
 MethodDefined By
  
MediaPlayerView(stageVideo:StageVideo)
Default constructor.
MediaPlayerView
  
create(stageVideo:StageVideo):MediaPlayerView
[static] Helper factory method.
MediaPlayerView
  
MediaPlayerView
  
Notifies associated media player that the view was clicked.
MediaPlayerView
  
update():void
Stage video dimensions have changed.
MediaPlayerView
Property Detail
heightproperty
height:Number  [write-only] [override]


Implementation
    public function set height(value:Number):void
stageVideoproperty 
stageVideo:StageVideo  [read-only]

The associated StageVideo object. The application is responsible of making sure that the associated StageVideo object is not attached to a different media stream directly.


Implementation
    public function get stageVideo():StageVideo
widthproperty 
width:Number  [write-only] [override]


Implementation
    public function set width(value:Number):void
xproperty 
x:Number  [write-only] [override]


Implementation
    public function set x(value:Number):void
yproperty 
y:Number  [write-only] [override]


Implementation
    public function set y(value:Number):void
Constructor Detail
MediaPlayerView()Constructor
public function MediaPlayerView(stageVideo:StageVideo)

Default constructor.

Parameters
stageVideo:StageVideo — StageVideo object which will be used for displaying video. Throws an ArgumentError if the specified parameter is null.
Method Detail
create()method
public static function create(stageVideo:StageVideo):MediaPlayerView

Helper factory method.

Parameters

stageVideo:StageVideo — StageVideo object which will be used for displaying video. Throws an ArgumentError if the specified parameter is null.

Returns
MediaPlayerView — a valid MediaPlayerView instance.
markForRefresh()method 
public function markForRefresh():void

notifyClick()method 
public function notifyClick():void

Notifies associated media player that the view was clicked.

update()method 
public function update():void

Stage video dimensions have changed. Aspect ratio needs to be updated.