Skip to content

Commit

Permalink
fix: use webm
Browse files Browse the repository at this point in the history
  • Loading branch information
maltoze committed Sep 12, 2023
1 parent 1548b9d commit fc2d272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class Recorder {
}
this.recorder.onstop = async () => {
const duration = Date.now() - this.startTime
const blob = new Blob(this.data, { type: this.data[0].type })
const blob = new Blob(this.data, { type: recorderMimeType })
const fixedBlob = await fixWebmDuration(blob, duration, { logger: false })

const url = URL.createObjectURL(fixedBlob)
Expand Down

0 comments on commit fc2d272

Please sign in to comment.