Constructor Summary
Public Constructor | ||
public |
constructor(player: Player, options: Object) Creates an instance of this class. |
Method Summary
Public Methods | ||
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 Methods
public addFileInfo(fileObj: Blob | File, now: date) source
Add filename and timestamp to converted file object.
Params:
Name | Type | Attribute | Description |
fileObj | Blob | File |
|
|
now | date |
|
Optional date information, default is current timestamp. |
public loadBlob(data: Blob): Promise source
Load Blob
and return Promise
.
Params:
Name | Type | Attribute | Description |
data | Blob |
|
public saveAs(name: Object) source
Show save as dialog in browser so the user can store the converted media locally.
Params:
Name | Type | Attribute | Description |
name | Object | Object with names for the particular blob(s) you want to save. File extensions are added automatically. For example: {'video': 'name-of-video-file'}. Supported keys are 'audio', 'video' and 'gif'. |