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

Function

getRecordingFrame

ClientDrawing (dx)Trilogy Hub only

Returns the pixels of one recording frame (number from 1) in jpeg (default), png or plain format, e.g. for dxCreateTexture or saving a photo.

Syntax

string getRecordingFrame(element recording, int index [, string format = "jpeg"])

Arguments

recordingelement
The recording.
indexint
Frame number from 1.
formatstring, optional = "jpeg"
Format.

Returns

Pixels or false.

Example

local rec = loadRecording("powtorki/ostatnia.avi")
local thumb = rec and dxCreateTexture(getRecordingFrame(rec, 1))

See also