Difference between revisions of "Videoplayer"

From Lianjapedia
Jump to: navigation, search
Line 1: Line 1:
 +
'Under Construction'
 +
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
  
Line 10: Line 12:
 
!Value
 
!Value
 
!width="50%"|Description
 
!width="50%"|Description
 +
|-
 +
|valign="top"|AspectRatio
 +
|valign="top"|
 +
|valign="top"|Numeric
 +
|IgnoreAspectRatio=0, KeepAspectRatio=1, KeepAspectRatioByExpanding=2.
 
|-
 
|-
 
|valign="top"|Duration
 
|valign="top"|Duration
Line 41: Line 48:
 
!Args
 
!Args
 
!width="50%"|Description
 
!width="50%"|Description
 +
|-
 +
|valign="top"|GetPhoto
 +
|valign="top"|filename as Character
 +
|valign="top"|
 +
|-
 +
|valign="top"|GetVideo
 +
|valign="top"|filename as Character
 +
|valign="top"|
 
|-
 
|-
 
|valign="top"|HideControls
 
|valign="top"|HideControls
Line 57: Line 72:
 
|valign="top"|None
 
|valign="top"|None
 
|valign="top"|Play the video.<br>Note: Videos will not play until additional codecs not provided in a standard Windows installation are installed. For example, source "K-Lite Mega Codec Pack" and install the codecs then videos should play.
 
|valign="top"|Play the video.<br>Note: Videos will not play until additional codecs not provided in a standard Windows installation are installed. For example, source "K-Lite Mega Codec Pack" and install the codecs then videos should play.
 +
|-
 +
|valign="top"|ShowControls
 +
|valign="top"|
 +
|valign="top"|
 +
|-
 +
|valign="top"|ShowOpen
 +
|valign="top"|
 +
|valign="top"|
 +
|-
 +
|valign="top"|StartCamera
 +
|valign="top"|
 +
|valign="top"|
 
|-
 
|-
 
|valign="top"|Stop
 
|valign="top"|Stop
 
|valign="top"|None
 
|valign="top"|None
 
|valign="top"|Stop the video
 
|valign="top"|Stop the video
 +
|-
 +
|valign="top"|StopCamera
 +
|valign="top"|
 +
|valign="top"|
 
|-
 
|-
 
|}
 
|}

Revision as of 04:54, 9 September 2016

'Under Construction'

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
AspectRatio Numeric IgnoreAspectRatio=0, KeepAspectRatio=1, KeepAspectRatioByExpanding=2.
Duration R Numeric Video duration in milliseconds.
Note: duration is not set until you load a video and play it.
Position RW Numeric Head position.
Url RW Character URL source.
Volume RW Numeric Volume as a percentage, default is 100.

Methods

This class supports the Common Methods plus the following:

Method Args Description
GetPhoto filename as Character
GetVideo filename as Character
HideControls None Hide the video controls.
HideOpen None Hide the 'Open...' button used to display the 'Open Video' file explorer.
Pause None Pause the video.
Play None Play the video.
Note: Videos will not play until additional codecs not provided in a standard Windows installation are installed. For example, source "K-Lite Mega Codec Pack" and install the codecs then videos should play.
ShowControls
ShowOpen
StartCamera
Stop None Stop the video
StopCamera

Events

This class supports the Common Events plus the following:

Event Args Description