ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. isRecordingPlayerPlaying

Function

isRecordingPlayerPlaying

ClientDrawing (dx)Trilogy Hub only

Checks whether the player is playing (not paused and not at the end without a loop).

Syntax

bool isRecordingPlayerPlaying(element player)

Arguments

playerelement
The player.

Returns

true while playing.

Example

local screen = createRecordingPlayer(loadRecording("powtorki/ostatnia.avi"))
local check
check = setTimer(function()
    if not isRecordingPlayerPlaying(screen) then
        outputChatBox("Koniec powtórki")
        killTimer(check)
    end
end, 1000, 0)

See also