class VideoWidgetSource
VideoWidget › Widget › Managed
Part of Widget UI system
All members, including inherited
Methods 17
Load a video file Return is deprecated, treat as void and use 'VideoCallback.ON_ERROR'
Show 1 more
, LoadVideo()proto native void Unload()Unload the video, freeing up all resources
Show 2 more
, VideoPlayer.KillVideo(), and Play()proto native bool Play()Starts video playback Return is deprecated, treat as void and use 'VideoCallback.ON_ERROR'
Show 1 more
, VideoPlayer.PlayVideo()proto native bool Pause()Pauses video playback Return is deprecated, treat as void and use 'VideoCallback.ON_ERROR'
Show 1 more
, Play()proto native bool Stop()Stop video playback (cancels everything and sets it back at time 0) Return is deprecated, treat as void and use 'VideoCallback.ON_ERROR'
Set the desired time for the video (preload decides whether it will already load the next frames too) Return is deprecated, treat as void and use 'VideoCallback.ON_ERROR'
proto native int GetTime()Get the current time of the video
proto native int GetTotalTime()Get the total time of the video
proto native void SetLooping(bool looping)Set whether the video should loop
proto native bool IsPlaying()QoL direct method to check for playing state (buffering while playing will still return true)
proto native VideoState GetState()Get the current state of the video
proto native void DisableSubtitles(bool disable)Enable/Disable subtitles
proto native bool IsSubtitlesDisabled()Check if subtitles are disabled (enabled by default if available, so it will return false even if there are none)
proto void SetCallback(VideoCallback cb, func fn)Set a callback for a certain video event
int Play(VideoCommand cmd)Legacy, preferably not used, left for backwards compat