Function
| Static Public Summary | ||
| public |
compareVersion(v1: string, v2: string): number Compare 2 version number strings. |
|
| public |
getRecorderMode(image: *, audio: *, video: *, animation: *, screen: *): * |
|
| public |
isChrome(): * |
|
| public |
isEdge(): * |
|
| public |
isFirefox(): * |
|
| public |
isOpera(): * |
|
| public |
isSafari(): * |
|
| public |
setSrcObject(stream: *, element: *) |
since 2.0.0 |
| Static Private Summary | ||
| private |
addFileInfo(fileObj: Blob | File, dateObj: date, fileExtension: string) Add filename and modification date to recorded file object. |
|
| private |
blobToArrayBuffer(fileObj: Blob | File): void Read |
|
| private |
defaultKeyHandler(event: object): void Default keyhandler. |
|
| private |
Browser detector. |
|
| private |
downloadBlob(fileName: string, data: blob): void Download |
|
| private |
formatTime(seconds: number, guide: number, displayMilliseconds: boolean): string Format seconds as a duration string. |
|
| private |
getAudioEngine(audioEngine: String): Object Get audio plugin engine class. |
|
| private |
getConvertEngine(convertEngine: String): Object Get converter plugin engine class. |
|
| private |
getExtension(mimeType: string): string Get file extension for mime-type. |
|
| private |
getVideoEngine(videoEngine: String): Object Get video plugin engine class. |
|
| private |
isAudioPluginActive(audioEngine: String): Boolean Check whether any audio record plugins are enabled. |
|
Static Public
public compareVersion(v1: string, v2: string): number source
import compareVersion from 'videojs-record/js/utils/compare-version.js'Compare 2 version number strings.
public getRecorderMode(image: *, audio: *, video: *, animation: *, screen: *): * source
import {getRecorderMode} from 'videojs-record/js/engine/record-mode.js'Params:
| Name | Type | Attribute | Description |
| image | * | ||
| audio | * | ||
| video | * | ||
| animation | * | ||
| screen | * |
Return:
| * |
public isChrome(): * source
import {isChrome} from 'videojs-record/js/utils/detect-browser.js'Return:
| * |
public isEdge(): * source
import {isEdge} from 'videojs-record/js/utils/detect-browser.js'Return:
| * |
public isFirefox(): * source
import {isFirefox} from 'videojs-record/js/utils/detect-browser.js'Return:
| * |
public isOpera(): * source
import {isOpera} from 'videojs-record/js/utils/detect-browser.js'Return:
| * |
public isSafari(): * source
import {isSafari} from 'videojs-record/js/utils/detect-browser.js'Return:
| * |
public setSrcObject(stream: *, element: *) since 2.0.0 source
import setSrcObject from 'videojs-record/js/utils/browser-shim.js'Params:
| Name | Type | Attribute | Description |
| stream | * | ||
| element | * |
Static Private
private addFileInfo(fileObj: Blob | File, dateObj: date, fileExtension: string) source
import {addFileInfo} from 'videojs-record/js/utils/file-util.js'Add filename and modification date to recorded file object.
Params:
| Name | Type | Attribute | Description |
| fileObj | Blob | File |
|
|
| dateObj | date |
|
Optional modification date information.
Default is |
| fileExtension | string |
|
Optional file extension to use. By default the file extension is automatically determined using the mime-type. |
private blobToArrayBuffer(fileObj: Blob | File): void source
import {blobToArrayBuffer} from 'videojs-record/js/utils/file-util.js'Read Blob as ArrayBuffer.
Params:
| Name | Type | Attribute | Description |
| fileObj | Blob | File |
|
Return:
| void |
private defaultKeyHandler(event: object): void source
import defaultKeyHandler from 'videojs-record/js/hot-keys.js'Default keyhandler.
Params:
| Name | Type | Attribute | Description |
| event | object | Event containing key info. |
Return:
| void |
private detectBrowser(): object source
import {detectBrowser} from 'videojs-record/js/utils/detect-browser.js'Browser detector.
private downloadBlob(fileName: string, data: blob): void source
import {downloadBlob} from 'videojs-record/js/utils/file-util.js'Download Blob object in browser.
Params:
| Name | Type | Attribute | Description |
| fileName | string | Name for the file to download. |
|
| data | blob | File data. |
Return:
| void |
private formatTime(seconds: number, guide: number, displayMilliseconds: boolean): string source
import formatTime from 'videojs-record/js/utils/format-time.js'Format seconds as a duration string.
Either formatted as:
- DD:HH:MM:SS (> 24 hours)
- HH:MM:SS (> 1 hour)
- MM:SS:MSS (
displayMilliseconds = true) - MM:SS (
displayMilliseconds = false)
Supplying a guide (in seconds) will force a number of leading zeros to cover the length of the guide.
private getAudioEngine(audioEngine: String): Object source
import {getAudioEngine} from 'videojs-record/js/engine/engine-loader.js'Get audio plugin engine class.
Params:
| Name | Type | Attribute | Description |
| audioEngine | String | Name of the audio engine. |
private getConvertEngine(convertEngine: String): Object source
import {getConvertEngine} from 'videojs-record/js/engine/engine-loader.js'Get converter plugin engine class.
Params:
| Name | Type | Attribute | Description |
| convertEngine | String | Name of the convert engine. |
private getExtension(mimeType: string): string source
import getExtension from 'videojs-record/js/utils/mime.js'Get file extension for mime-type.
Params:
| Name | Type | Attribute | Description |
| mimeType | string | Mime-type to match against. |
private getVideoEngine(videoEngine: String): Object source
import {getVideoEngine} from 'videojs-record/js/engine/engine-loader.js'Get video plugin engine class.
Params:
| Name | Type | Attribute | Description |
| videoEngine | String | Name of the video engine. |
private isAudioPluginActive(audioEngine: String): Boolean source
import {isAudioPluginActive} from 'videojs-record/js/engine/engine-loader.js'Check whether any audio record plugins are enabled.
Params:
| Name | Type | Attribute | Description |
| audioEngine | String | Name of the audio engine. |
