Skip to main content

LensStudio:Preview.Video

Class

MP4 video recorded from a preview by recordVideo().

Index

Extends

Methods

getTypeName()

static getTypeName(): string

Returns the type name of this class.

Returns

string

Overrides

ScriptObject.getTypeName


getTypeName()

getTypeName(): string

Returns the name of this object's type.

Returns

string

Inherited from

ScriptObject.getTypeName


isOfType()

isOfType(type): boolean

Returns true if the object is of the specified type.

Parameters

ParameterType
typestring

Returns

boolean

Inherited from

ScriptObject.isOfType


isSame()

isSame(other): boolean

Returns true if this object refers to the same instance as the given object.

Parameters

ParameterType
otherScriptObject

Returns

boolean

Inherited from

ScriptObject.isSame


save()

save(filename): void

Copies the recorded MP4 file to the given path. Requires the filesystem permission.

Parameters

ParameterType
filenamePath

Returns

void


toMp4Bytes()

toMp4Bytes(): Uint8Array

Returns the bytes of the recorded MP4 file.

Returns

Uint8Array