Home Reference Source
public class | source

FFmpegWasmEngine

Extends:

ComponentConvertEngine → FFmpegWasmEngine

Converter engine using the ffmpeg.wasm library.

Constructor Summary

Public Constructor
public

constructor(player: Player, options: Object)

Creates an instance of this class.

Member Summary

Public Members
public

Path to script ffmpeg-core.wasm.

public

Path to script ffmpeg-core.worker.js.

public

Path to script ffmpeg-core.js.

public

Enables console logging for debugging purposes.

public

ffmpeg: *

public

Mime-type for output.

public

Additional configuration options for the ffmpeg.wasm library.

Method Summary

Public Methods
public

async convert(data: Blob)

Inject metadata.

Inherited Summary

From class ConvertEngine
public

debug: *

public
public

addFileInfo(fileObj: Blob | File, now: date)

Add filename and timestamp to converted file object.

public

loadBlob(data: Blob): Promise

Load Blob and return Promise.

public

saveAs(name: Object)

Show save as dialog in browser so the user can store the converted media locally.

public

setup(mediaType: Object, debug: Boolean)

Setup recording engine.

Public Constructors

public constructor(player: Player, options: Object) source

Creates an instance of this class.

Override:

ConvertEngine#constructor

Params:

NameTypeAttributeDescription
player Player

The Player that this class should be attached to.

options Object
  • optional

The key/value store of player options.

Public Members

public audioWebAssemblyURL: string source

Path to script ffmpeg-core.wasm.

public convertWorkerURL: string source

Path to script ffmpeg-core.worker.js.

public coreURL: string source

Path to script ffmpeg-core.js.

public debug: boolean source

Enables console logging for debugging purposes.

Override:

ConvertEngine#debug

public ffmpeg: * source

public outputType: string source

Mime-type for output.

public pluginLibraryOptions: object source

Additional configuration options for the ffmpeg.wasm library.

Public Methods

public async convert(data: Blob) source

Inject metadata.

Params:

NameTypeAttributeDescription
data Blob

Recorded data that needs to be converted.