API > VideoPlayer > errorReceived
VideoPlayer.errorReceived⚓︎
Read-Only
This property is Read-Only
Name | Type |
---|---|
errorReceived | 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, string message);
Parameters⚓︎
Name | Type | Description |
---|---|---|
source | VideoPlayer | The Video Player |
message | string | The Error message |
Usage⚓︎
--- @type
local videoplayer;
--- callback function called when event triggers
--- @param videoplayer VideoPlayer
--- @param string string
local function CallBack(videoplayer, string)
-- code to handle event call back
end
-- Regsiter callback function
videoplayer.errorReceived.Add(CallBack);
Description⚓︎
Errors such as HTTP connection problems are reported through this callback.