- Documentation
- Client functions
- createRecordingFromData
Function
createRecordingFromData
Creates a recording from AVI (MJPEG) data: from getRecordingData, a file or another player.
Syntax
element createRecordingFromData(string data)Arguments
datastring- AVI data.
Returns
The recording or false.
Example
addEvent("onReplay", true)
addEventHandler("onReplay", root, function(data)
local rec = createRecordingFromData(data)
if rec then createRecordingPlayer(rec) end
end)
See also
getRecordingDataReturns the whole recording as an AVI (MJPEG) file in a string, e.g. forfileWrite, sending to the server orcreateRecordingFromData.createRecordingPlayerCreates a recording player that is a texture: you draw it like any texture, also in the world withdxDrawMaterialLine3D. The recording can be deleted afterwards; the player keeps its own frames.