import OpusMediaRecorderEngine from 'videojs-record/js/plugins/opus-media-recorder-plugin.js'
OpusMediaRecorderEngine
Extends:
Audio-only engine for the opus-media-recorder library.
opus-media-recorder uses WebAssembly compiled from popular libraries (e.g libopus, libogg, libwebm, and speexdsp) to ensure good performance and standards-compliance.
Constructor Summary
Public Constructor | ||
public |
constructor(player: Player, options: Object) Creates an instance of this class. |
Member Summary
Public Members | ||
public |
Mime-type for audio output. |
|
public |
chunks: *[] |
|
public |
debug: * |
|
public |
engine: * |
|
public |
inputStream: * |
|
public |
mediaType: * |
|
public |
|
Method Summary
Public Methods | ||
public |
Setup recording engine. |
|
public |
start() Start recording. |
|
public |
stop() Stop recording. |
Private Methods | ||
private |
|
|
private |
onRecordingAvailable(event: Object) |
Inherited Summary
From class RecordEngine | ||
public |
recordedData: * |
|
public |
addFileInfo(fileObj: Blob | File) Add filename and timestamp to recorded file object. |
|
public |
destroy() Destroy engine. |
|
public |
Show save as dialog in browser so the user can store the recorded media locally. |
|
private |
dispose() Remove any temporary data and references to streams. |
|
private |
onStopRecording(data: blob) Invoked when recording is stopped and resulting stream is available. |
Public Constructors
public constructor(player: Player, options: Object) source
Creates an instance of this class.
Override:
RecordEngine#constructorParams:
Name | Type | Attribute | Description |
player | Player | The |
|
options | Object |
|
The key/value store of player options. |
Public Members
public audioType: string source
Mime-type for audio output.
Choose desired format like audio/webm
. Default is audio/ogg
.