Skip to content

API > MLVideoExtension > OnVideoTimeChanged


MLVideoExtension.OnVideoTimeChanged⚓︎

Read-Only

Read-only Property This property is Read-Only

Name Type
OnVideoTimeChanged EventHandler

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();

Usage⚓︎

--- @type 
local mlvideoextension;

--- callback function called when event triggers

local function CallBack()
    -- code to handle event call back
end


-- Regsiter callback function
mlvideoextension.OnVideoTimeChanged.Add(CallBack);

Description⚓︎

This event will fire when the time of the video changed by other clients in the room. Use if you check the TryToSynchronizeVideoPosition in component.