t-mullen / video-stream-merger

Merge multiple video MediaStreams into one composite.
https://t-mullen.github.io/video-stream-merger/
MIT License
357 stars 81 forks source link

upgrade to 4.01 with problems #80

Closed superyhee closed 2 years ago

superyhee commented 3 years ago

when i upgrade to 4.01 ,i got the following errors: video_stream_mergerWEBPACK_IMPORTED_MODULE4default.a is not a constructor

superyhee commented 2 years ago

resolved

En777 commented 2 years ago

@superyhee how to resolve? var VideoStreamMerger = require('video-stream-merger'); var merger = new VideoStreamMerger() VideoStreamMerger is not a constructor

hthetiot commented 2 years ago

@En777

Have you tried:

const { VideoStreamMerger } = require('video-stream-merger');

How about:

import { MediaStreamRecorder } from 'video-stream-merger';

P.s don't comment on closed issue, pls.