VideoPlayer.clockResyncOccurred
"Read-Only"
This property is Read-Only
Name | Type |
---|---|
clockResyncOccurred | 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(VideoPlayer source, number seconds);
Parameters
Name | Type | Description |
---|---|---|
source | VideoPlayer | The Video Player |
seconds | number | Time when resync occurred |
Usage
--- @type
local videoplayer;
--- callback function called when event triggers
--- @param videoplayer VideoPlayer
--- @param number number
local function CallBack(videoplayer, number)
-- code to handle event call back
end
-- Regsiter callback function
videoplayer.clockResyncOccurred.Add(CallBack);
Description
Invoked when the VideoPlayer clock is synced back to its VideoTimeReference.
Extra Detail
The new VideoPlayer time is provided in the TimeEventHandler.