-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiled bundle.js for seamless use in browser replacing the default MediaRecorder #660
Comments
Hi @tatban, sorry for the long delay. I plan to add a fully compiled bundle to all my open source packages since this was requested by a couple of people. I just need some time to figure out the "right" format. chrisguttandin/automation-events#49 In the meantime we could try to solve your specific problem. It looks like you don't reference the browserify bundle in the HTML code you posted above. Could that maybe be the problem? Which code do you use to generate the bundle? |
I would love to know how this turned out, as my experiment has a similar structure to tatban's. I also used browserify. I attached to html script tag as <script type="module" src="wavBundle.js"/> the js i used as my test bundle source for browserify was:
and I used the following import statements in my main source js:
getting the following error:
|
Hi @siriusrex, I would expect that you need to re-export |
Any updates on a pre-bundled version of this library? Like a dist.js? I'm using the code in a script tag in my index.html like this:
but I really need to be able to import it like a normal npm library to use this code. This appears to be the only library that does what I need, so it would be really helpful for myself and others to be able to use this without requiring the addition of a bundler into a project's pipeline. edit: if it helps, i got it working in react by bundling it in rollup. keep in mind i have never used rollup before now and barely know what i'm doing, so this is probably hot garbage. I also had to add lint ignore comments in the files after bundling. below is my rollup config:
and in my react component (files are in src/lib): |
I am quite new to js and I am struggling to build a simple browser based audio recording prototype using html and js in front end and python flask as backend. I would like to use your MediaRecorder seamlessly in place of default MediaRecorder to get the output in WAV format (which is currently not happening due to lack of browser support for wav in default MediaRecorder). I don't want to use jspm, so I tried compiling your module using browserify, but could not make it work ultimately. So, could you please provide a compiled bundle.js and also let me know how do I integrate it with my existing code as follows? (I mean what are the minimal changes required to use your MediaRecorder?):
The text was updated successfully, but these errors were encountered: