- Documentation
- Client functions
- stopCameraRecording
Function
stopCameraRecording
Stops recording. The recording stays available for playback and saving. Returns false if it was no longer recording.
Syntax
bool stopCameraRecording(element recording)Arguments
recordingelement- The recording.
Returns
true if stopped.
Example
local cam = createCameraRender(320, 180, 15)
local rec = startCameraRecording(cam, 15, 30)
bindKey("F7", "down", function() stopCameraRecording(rec) end)
See also
startCameraRecordingRecords the image of a camera fromcreateCameraRenderinto memory (no sound). Returns a recording element. 1-60 frames per second, up to 600 seconds, JPEG quality 1-100. The camera should take at least as many shots per second as the recording, otherwise frames repeat.isCameraRecordingChecks whether the recording is still running (it stops by itself after the maximum time, a memory limit or when the camera is removed).