Skip to main content

VideoPlayer.loopPointReached

"Read-Only"

This property is Read-Only

NameType
loopPointReachedEventHandler

Event callback function requirement

info

This property is an event. It means that you need to add a listener function to it. Here how that function needs to look like.

function(VideoPlayer source);

Parameters
NameTypeDescription
sourceVideoPlayerThe Video Player

Usage

--- @type 
local videoplayer;

--- callback function called when event triggers
--- @param videoplayer VideoPlayer
local function CallBack(videoplayer)
-- code to handle event call back
end


-- Regsiter callback function
videoplayer.loopPointReached.Add(CallBack);

Description

Invoked when the VideoPlayer reaches the end of the content to play.

Extra Detail

Looping will happen if the loop property is set to true. Otherwise the VideoPlayer will stop.