kbumsik / opus-media-recorder

MediaRecorder polyfill for Opus recording using WebAssembly
http://kbumsik.io/opus-media-recorder/
Other
318 stars 39 forks source link

Seems silent on iOS in the example #4

Closed kbumsik closed 5 years ago

kbumsik commented 5 years ago

Currently the stream becomes silent when start recording on iOS in the example page.

I believe the code itself is working though. There might be problem with permission.

kbumsik commented 5 years ago

Actually, the recording works fine, the microphone stream is silent only when I turn on the visualization. I think it is probably because I connected the stream with two AudioGraphs.

Further investigation needed.

kbumsik commented 5 years ago

It turns out to be not using visualization. I would focus on the opus-media-recorder capabilities than the look in our example. 7a36603188e515e946fa396957adc3d8e38c606f removes visualization in the example page.

chpio commented 4 years ago

So what had been the issue here? Using one source in multiple graphs?

MDN lists createScriptProcessor as not supported in ios could that be a problem?

I get an object created from the call to createScriptProcessor, but onaudioprocess gets never called on ios (v12.4.3).

ohh, i think, that's the problem

kbumsik commented 4 years ago

So what had been the issue here? Using one source in multiple graphs?

It was a year ago so I don't remember the problem exactly, but it seemed that connecting multiple graphs with one source causes a problem.

MDN lists createScriptProcessor as not supported in ios could that be a problem?

No the MDN page seems to be outdated, this library uses createScriptProcessor and it currently works in iOS, just having an issue with using multiple graph.

I get an object created from the call to createScriptProcessor, but onaudioprocess gets never called on ios (v12.4.3).

As I said createScriptProcessor works in my iPhone. Do you have issue with this library? If you are just looking for an advice on createScriptProcessor, you can have a look at how I use it:

https://github.com/kbumsik/opus-media-recorder/blob/b1314a8203d99b99d18654d90f771e7ef1cba6ed/src/OpusMediaRecorder.js#L383