Skip to content

Commit 2b1e904

Browse files
Merge pull request #16 from apivideo/make-getsupportedmimetypes-static
Make getSupportedMimeTypes static
2 parents fd419bb + 84bc5b3 commit 2b1e904

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Changelog
22
All changes to this project will be documented in this file.
33

4+
## [1.0.10] - 2023-02-07
5+
- Make `getSupportedMimeTypes` static
6+
47
## [1.0.9] - 2023-02-07
58
- Add `mimeType` and `generateFileOnStop` options
69

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@api.video/media-recorder",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"description": "api.video media recorder - upload video from your webcam with ease",
55
"repository": {
66
"type": "git",

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ApiVideoMediaRecorder {
3636
this.generateFileOnStop = options.generateFileOnStop || false;
3737

3838
const findBestMimeType = () => {
39-
const supportedTypes = this.getSupportedMimeTypes();
39+
const supportedTypes = ApiVideoMediaRecorder.getSupportedMimeTypes();
4040
if (supportedTypes.length === 0) {
4141
throw new Error("No compatible supported video mime type");
4242
}
@@ -132,7 +132,7 @@ export class ApiVideoMediaRecorder {
132132
this.mediaRecorder.pause();
133133
}
134134

135-
public getSupportedMimeTypes() {
135+
public static getSupportedMimeTypes() {
136136
const VIDEO_TYPES = [
137137
"mp4",
138138
"webm",

0 commit comments

Comments
 (0)