import FFmpegWasmEngine from 'videojs-record/js/plugins/ffmpeg-wasm-plugin.js'
FFmpegWasmEngine
Extends:
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 |
|
public |
Path to script |
|
public |
Path to script |
|
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 |
mediaType: * |
|
public |
addFileInfo(fileObj: Blob | File, now: date) Add filename and timestamp to converted file object. |
|
public |
Load |
|
public |
Show save as dialog in browser so the user can store the converted media locally. |
|
public |
Setup recording engine. |
Public Constructors
public constructor(player: Player, options: Object) source
Creates an instance of this class.
Override:
ConvertEngine#constructorParams:
Name | Type | Attribute | Description |
player | Player | The |
|
options | Object |
|
The key/value store of player options. |
Public Members
public debug: boolean source
Enables console logging for debugging purposes.
Override:
ConvertEngine#debugpublic ffmpeg: * source
Public Methods
public async convert(data: Blob) source
Inject metadata.
Params:
Name | Type | Attribute | Description |
data | Blob | Recorded data that needs to be converted. |