@api.video/media-recorder
Advanced tools
Comparing version 1.0.9 to 1.0.10
# Changelog | ||
All changes to this project will be documented in this file. | ||
## [1.0.10] - 2023-02-07 | ||
- Make `getSupportedMimeTypes` static | ||
## [1.0.9] - 2023-02-07 | ||
@@ -5,0 +8,0 @@ - Add `mimeType` and `generateFileOnStop` options |
@@ -30,3 +30,3 @@ import { ProgressiveUploaderOptionsWithAccessToken, ProgressiveUploaderOptionsWithUploadToken, VideoUploadResponse } from "@api.video/video-uploader"; | ||
pause(): void; | ||
getSupportedMimeTypes(): string[]; | ||
static getSupportedMimeTypes(): string[]; | ||
} |
{ | ||
"name": "@api.video/media-recorder", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "api.video media recorder - upload video from your webcam with ease", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -39,3 +39,3 @@ import { ProgressiveUploader, ProgressiveUploaderOptionsWithAccessToken, ProgressiveUploaderOptionsWithUploadToken, VideoUploadResponse } from "@api.video/video-uploader"; | ||
const findBestMimeType = () => { | ||
const supportedTypes = this.getSupportedMimeTypes(); | ||
const supportedTypes = ApiVideoMediaRecorder.getSupportedMimeTypes(); | ||
if (supportedTypes.length === 0) { | ||
@@ -136,3 +136,3 @@ throw new Error("No compatible supported video mime type"); | ||
public getSupportedMimeTypes() { | ||
public static getSupportedMimeTypes() { | ||
const VIDEO_TYPES = [ | ||
@@ -139,0 +139,0 @@ "mp4", |
Sorry, the diff of this file is too big to display
135695