prepareCompleted
7/14/25Less than 1 minute
VideoPlayer.prepareCompleted
"Read-Only"
This property is **Read-Only**
Name | Type |
---|---|
prepareCompleted | 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);
Parameters
Name | Type | Description |
---|---|---|
source | VideoPlayer | The 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.prepareCompleted.Add(CallBack);
Description
Invoked when the VideoPlayer preparation is complete.
Extra Detail
When starting playback after this callback is invoked, frames will become available instantly.