Skip to content

YaUIVideoPlayer

YaUIVideoPlayer controls the video player on the UI.

Properties

string Url

CLIENT ONLY 
The URL of the video

boolean Visible

CLIENT ONLY 
Determines the visibility of the loader. Set it to true if you want the loader visible.

number SortingOrder

CLIENT ONLY 
Determines the sorting order of the video player.

float2 Position

CLIENT ONLY 
Determines the position of the loader.

table Data

CLIENT ONLY 
Custom data. This is the data that makes sense to you. You can set the data and get it for your own purposes.

EventListener OnClick

CLIENT ONLY 
Fired when the loader is clicked.

Events

OnVideoStarted<void>

CLIENT ONLY 
Fired when the video starts playing.

OnVideoEnded<void>

CLIENT ONLY 
Fired when the video ends playing.