Skip to main content

VideoPlayer.frameReady

"Read-Only"

This property is Read-Only

NameType
frameReadyEventHandler

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

Parameters
NameTypeDescription
sourceVideoPlayerThe Video Player
frameIdxnumberFrame Index

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.frameReady.Add(CallBack);

Description

Invoked when a new frame is ready.

Extra Detail

This is likely to tax the CPU so this callback must be explicitly enabled through the VideoPlayer.frameReadyEventsEnabled property.