Difference between revisions of "Videoplayer"

From Lianjapedia
Jump to: navigation, search
 
(18 intermediate revisions by one other user not shown)
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.
 +
 +
====Description====
 +
Shown below in a standalone [[Form]].  Click the image to see in a [[Custom_Sections_and_Gadgets|Custom Section]] in a Lianja [[Page Attributes|Page]].
 +
 +
[[{{ns:file}}:slider_videoplayer.png|link={{filepath:slider_videoplayer_cs.png}}|Videoplayer]]
 +
 +
Videoplayer control for desktop Apps.
  
 
====Properties====
 
====Properties====
Line 12: Line 18:
 
!width="50%"|Description
 
!width="50%"|Description
 
|-
 
|-
|Duration
+
|valign="top"|AspectRatio
|
+
|valign="top"|RW
|
+
|valign="top"|Numeric
|Note that duration is not set until you load a video and play it.
+
|IgnoreAspectRatio=0, KeepAspectRatio=1, KeepAspectRatioByExpanding=2.<br>Default is 1.
 
|-
 
|-
|Position
+
|valign="top"|Duration
|
+
|valign="top"|R
|
+
|valign="top"|Numeric
 +
|Video duration in milliseconds.<br>Note: duration is not set until you load a video and play it.
 +
|-
 +
|PauseAtPosition
 +
|RW
 +
|Numeric
 
|
 
|
 
|-
 
|-
|Url
+
|Position
 
|RW
 
|RW
|Character
+
|Numeric
|URL source
+
|Head position.
 
|-
 
|-
|Volumn
+
|Slider
|
+
|RW
 
|
 
|
 
|
 
|
 +
|-
 +
|valign="top"|Url
 +
|valign="top"|RW
 +
|valign="top"|Character
 +
|URL source.<br>Note: Call stop() for the current video before changing the url property.
 +
|-
 +
|Volume
 +
|RW
 +
|Numeric
 +
|Volume as a percentage, default is 100.
 
|-
 
|-
 
|}
 
|}
Line 42: Line 63:
 
!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 49: Line 78:
 
|valign="top"|HideOpen
 
|valign="top"|HideOpen
 
|valign="top"|None
 
|valign="top"|None
|valign="top"|Hide the 'Open...' button used to display the 'Open Video' file explorer.
+
|valign="top"|Hide the 'Open...' button used to display the 'Open Video' file explorer when the video controls are displayed.
 
|-
 
|-
 
|valign="top"|Pause
 
|valign="top"|Pause
Line 57: Line 86:
 
|valign="top"|Play
 
|valign="top"|Play
 
|valign="top"|None
 
|valign="top"|None
|valign="top"|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.
+
|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"|None
 +
|valign="top"|Show the video controls.
 +
|-
 +
|valign="top"|ShowOpen
 +
|valign="top"|None
 +
|valign="top"|Show the 'Open...' button used to display the 'Open Video' file explorer when the video controls are displayed.
 +
|-
 +
|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"|
 
|-
 
|-
 
|}
 
|}

Latest revision as of 21:14, 25 December 2021

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

Description

Shown below in a standalone Form. Click the image to see in a Custom Section in a Lianja Page.

Videoplayer

Videoplayer control for desktop Apps.

Properties

This class supports the Common Properties plus the following:

Property Access (R/RW) Value Description
AspectRatio RW Numeric IgnoreAspectRatio=0, KeepAspectRatio=1, KeepAspectRatioByExpanding=2.
Default is 1.
Duration R Numeric Video duration in milliseconds.
Note: duration is not set until you load a video and play it.
PauseAtPosition RW Numeric
Position RW Numeric Head position.
Slider RW
Url RW Character URL source.
Note: Call stop() for the current video before changing the url property.
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 when the video controls are displayed.
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 None Show the video controls.
ShowOpen None Show the 'Open...' button used to display the 'Open Video' file explorer when the video controls are displayed.
StartCamera
Stop None Stop the video.
StopCamera

Events

This class supports the Common Events plus the following:

Event Args Description