- Documentation
- Client functions
- isRecordingPlayerPlaying
Function
isRecordingPlayerPlaying
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)