Skip to main content

MLVideoExtension.OnVideoTimeChanged

"Read-Only"

This property is Read-Only

NameType
OnVideoTimeChangedEventHandler

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.