Skip to content

Commit

Permalink
verup
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Aug 14, 2024
1 parent 31a3f6e commit 49a5d4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/webrtc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "werift",
"version": "0.19.5",
"version": "0.19.6",
"description": "WebRTC Implementation for TypeScript (Node.js)",
"keywords": [
"WebRTC",
Expand Down
11 changes: 6 additions & 5 deletions packages/webrtc/src/nonstandard/recorder/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ export class MediaRecorder {
),
) {
this.tracks = props.tracks ?? this.tracks;
if (this.tracks.length === props.numOfTracks) {
this.start().catch((error) => {
this.onError.execute(error);
});
}

const { path, stream } = props;

Expand All @@ -56,6 +51,12 @@ export class MediaRecorder {
stream: stream!,
});
}

if (this.tracks.length === props.numOfTracks) {
this.start().catch((error) => {
this.onError.execute(error);
});
}
}

async addTrack(track: MediaStreamTrack) {
Expand Down

0 comments on commit 49a5d4d

Please sign in to comment.