Skip to content

Commit

Permalink
fix: ts-ebml problem (#133)
Browse files Browse the repository at this point in the history
Co-authored-by: Mitchell Catoen <mitchellcatoen@gmail.com>
  • Loading branch information
fbaiodias and catoenm authored Aug 10, 2021
1 parent c743581 commit 32db6f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/video-recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,10 @@ export default class VideoRecorder extends Component {

return rawVideoBlob.arrayBuffer().then((buffer) => {
const decoder = new Decoder()
const elements = decoder.decode(buffer)
let elements = decoder.decode(buffer)
// see https://github.com/legokichi/ts-ebml/issues/33#issuecomment-888800828
const validEmlType = ['m', 'u', 'i', 'f', 's', '8', 'b', 'd']
elements = elements?.filter((elm) => validEmlType.includes(elm.type))

const reader = new Reader()
reader.logging = false
Expand Down

1 comment on commit 32db6f1

@vercel
Copy link

@vercel vercel bot commented on 32db6f1 Aug 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.