FFmpegjsEngine
Extends:
Converter engine using the ffmpeg.js library.
Deprecated. Use the ffmpeg.wasm plugin instead.
Constructor Summary
| Public Constructor | ||
| public |
constructor(player: Player, options: Object) Creates an instance of this class. |
|
Member Summary
| Public Members | ||
| public |
Path to worker script |
|
| public |
Enables console logging for debugging purposes. |
|
| public |
engine: * |
|
| public |
mediaType: * |
|
| public |
Mime-type for output. |
|
| public |
Additional configuration options for the ffmpeg.js library. |
|
| public |
stderr: * |
|
| public |
stdout: * |
|
| public |
timestamp: * |
|
Method Summary
| Public Methods | ||
| public |
convert(data: blob) Invoked when recording is stopped and resulting stream is available. |
|
| public |
Setup recording engine. |
|
| Private Methods | ||
| private |
onWorkerMessage(event: Object) Received a message from the worker. |
|
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 convertWorkerURL: string source
Path to worker script ffmpeg-worker-mp4.js (H.264 & AAC & MP3 encoders)
or ffmpeg-worker-webm.js (VP8 & Opus encoders).
public debug: boolean source
Enables console logging for debugging purposes.
Override:
ConvertEngine#debugpublic engine: * source
public pluginLibraryOptions: object source
Additional configuration options for the ffmpeg.js library.
public stderr: * source
public stdout: * source
public timestamp: * source
Public Methods
public convert(data: blob) source
Invoked when recording is stopped and resulting stream is available.
Params:
| Name | Type | Attribute | Description |
| data | blob | Reference to the recorded |
public setup(mediaType: Object, debug: Boolean) source
Setup recording engine.
