Content:
- Properties
- Methods

The VideoView can be used to play local video files from the filesystem or video streams from remote sources.

vid = app.CreateVideoView( width=-1, height=-1, options? ) → app object: VideoView

Use SetFile to set the video file or video stream address.
player.SetFile( "https://file-examples.com/wp-content/uploads/2017/04/file_example_MP4_640_3MG.mp4" );
When the video is ready to play, the OnReady callback function will be called, you can then use Play to start playing the video.

If the video cannot be played, the OnError callback function will be called. Use SetOnReady and SetOnError to set the names of your OnReady and OnError callback functions.

Example - Video Stream click to expand contents 

Properties

The following properties are available on the VideoView object:

dataObject: { key, value }

Methods

The following methods are available on the VideoView object:

Focus()
GetAbsHeight() → Number: integer
GetAbsWidth() → Number: integer
GetDuration() → Number: float
GetHeight( options? ) → Number
GetLeft( options? ) → Number
GetParent() → app object
GetPosition( options? ) → Object: { left, top, width, height }
GetTop( options? ) → Number
GetType() → String: “VideoView”
GetVisibility() → String: “Show” or “Hide” or “Gone”
GetWidth( options? ) → Number
Gone()
Hide()
IsEnabled() → Boolean
IsOverlap( obj, depth? ) → Boolean
IsPlaying() → Boolean
IsReady() → Boolean
IsVisible() → Boolean
Method( name, types?, p1?, p2?, p3?, p4? ) → all types
Pause()
Play()
Resize()
SetScale( x, y )
Show()
Stop()