Comparing version 4.0.0 to 4.0.1
@@ -209,2 +209,16 @@ /** | ||
/** | ||
* Parameters that specify the format of recorded videos. Used by {@link DeepAR.startVideoRecording}. | ||
*/ | ||
export interface VideoRecordingOptions { | ||
/** | ||
* A MIME type specyfing the format for the resulting video, such as `video/webm` or `video/mp4`. | ||
* Corresponds to the MIME type used by <a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob">Blob</a> | ||
* objects and <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder">MediaRecorder</a> | ||
* from the MediaStream Recording API. | ||
* | ||
* Note that `video/mp4` may not be supported in all browsers. | ||
*/ | ||
mimeType?: string; | ||
} | ||
/** | ||
* Main class for interacting with DeepAR SDK. | ||
@@ -379,4 +393,5 @@ */ | ||
* Starts video recording of the canvas. | ||
* @param options Video recording options. | ||
*/ | ||
startVideoRecording(): void; | ||
startVideoRecording(options?: VideoRecordingOptions): void; | ||
/** | ||
@@ -420,2 +435,7 @@ * Stops the video recording and returns a video blob via callback. | ||
/** | ||
* @internal | ||
* @param enable | ||
*/ | ||
enableAutoframing(enable: boolean): void; | ||
/** | ||
* Used to initialize the DeepAR SDK.<br><br> | ||
@@ -422,0 +442,0 @@ * <strong><u>IMPORTANT</u></strong>: Note that this is now called with the <b>new</b> keyword. In previous versions of SDK this was just a plain function called without new keyword |
@@ -209,2 +209,16 @@ /** | ||
/** | ||
* Parameters that specify the format of recorded videos. Used by {@link DeepAR.startVideoRecording}. | ||
*/ | ||
export interface VideoRecordingOptions { | ||
/** | ||
* A MIME type specyfing the format for the resulting video, such as `video/webm` or `video/mp4`. | ||
* Corresponds to the MIME type used by <a href="https://developer.mozilla.org/en-US/docs/Web/API/Blob">Blob</a> | ||
* objects and <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder">MediaRecorder</a> | ||
* from the MediaStream Recording API. | ||
* | ||
* Note that `video/mp4` may not be supported in all browsers. | ||
*/ | ||
mimeType?: string; | ||
} | ||
/** | ||
* Main class for interacting with DeepAR SDK. | ||
@@ -379,4 +393,5 @@ */ | ||
* Starts video recording of the canvas. | ||
* @param options Video recording options. | ||
*/ | ||
startVideoRecording(): void; | ||
startVideoRecording(options?: VideoRecordingOptions): void; | ||
/** | ||
@@ -420,2 +435,7 @@ * Stops the video recording and returns a video blob via callback. | ||
/** | ||
* @internal | ||
* @param enable | ||
*/ | ||
enableAutoframing(enable: boolean): void; | ||
/** | ||
* Used to initialize the DeepAR SDK.<br><br> | ||
@@ -422,0 +442,0 @@ * <strong><u>IMPORTANT</u></strong>: Note that this is now called with the <b>new</b> keyword. In previous versions of SDK this was just a plain function called without new keyword |
{ | ||
"name": "deepar", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "The official DeepAR Web SDK", | ||
@@ -5,0 +5,0 @@ "main": "js/deepar.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
18421004
926