Packagecom.akamai.display
Classpublic class AkamaiVideoSurface
InheritanceAkamaiVideoSurface Inheritance org.osmf.media.videoClasses.VideoSurface

AkamaiVideoSurface class wraps the display object where a video should be displayed.



Public Properties
 PropertyDefined By
  stageVideoInstanceCount : int
[read-only] The total number of StageVideo instances.
AkamaiVideoSurface
  stageVideoInUse : Boolean
[read-only] Indicates if the current video surface is using StageVideo.
AkamaiVideoSurface
  stageVideoInUseCount : int
[read-only] The number of StageVideo instances that are being currently used.
AkamaiVideoSurface
  status : String
[read-only] Indicates whether the video is being rendered (decoded and displayed) by hardware or software, or not at all
AkamaiVideoSurface
  videoCompositingStatus : String
[read-only] Indicates whether the video is being rendered by hardware or software
AkamaiVideoSurface
  videoDecodingStatus : String
[read-only] Indicates whether the video is being decoded by hardware or software
AkamaiVideoSurface
Public Methods
 MethodDefined By
  
AkamaiVideoSurface(useStageVideo:Boolean = true, createVideo:Function = null)
Default constructor.
AkamaiVideoSurface
  
Will put the Stage into fullscreen mode and will maintain aspect ratio.
AkamaiVideoSurface
  
Will exit fullscreen mode and will return the video to the size it was before fullscreen was entered.
AkamaiVideoSurface
Property Detail
stageVideoInstanceCountproperty
stageVideoInstanceCount:int  [read-only]

The total number of StageVideo instances.


Implementation
    public function get stageVideoInstanceCount():int
stageVideoInUseproperty 
stageVideoInUse:Boolean  [read-only]

Indicates if the current video surface is using StageVideo.


Implementation
    public function get stageVideoInUse():Boolean
stageVideoInUseCountproperty 
stageVideoInUseCount:int  [read-only]

The number of StageVideo instances that are being currently used.


Implementation
    public function get stageVideoInUseCount():int
statusproperty 
status:String  [read-only]

Indicates whether the video is being rendered (decoded and displayed) by hardware or software, or not at all


Implementation
    public function get status():String
videoCompositingStatusproperty 
videoCompositingStatus:String  [read-only]

Indicates whether the video is being rendered by hardware or software


Implementation
    public function get videoCompositingStatus():String
videoDecodingStatusproperty 
videoDecodingStatus:String  [read-only]

Indicates whether the video is being decoded by hardware or software


Implementation
    public function get videoDecodingStatus():String
Constructor Detail
AkamaiVideoSurface()Constructor
public function AkamaiVideoSurface(useStageVideo:Boolean = true, createVideo:Function = null)

Default constructor.

Parameters
useStageVideo:Boolean (default = true) — - Set to false to use the non-accelerated video object.
 
createVideo:Function (default = null)
Method Detail
enterFullscreen()method
public function enterFullscreen():void

Will put the Stage into fullscreen mode and will maintain aspect ratio.

exitFullscreen()method 
public function exitFullscreen():void

Will exit fullscreen mode and will return the video to the size it was before fullscreen was entered.