Skip to content
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

getUserMedia not handle audio audioContext.createMediaStreamSource #562

Open
AlekseyPn opened this issue Aug 27, 2020 · 8 comments
Open

Comments

@AlekseyPn
Copy link

AlekseyPn commented Aug 27, 2020

Versions affected

  • Cordova version: latest:
  • Cordova iOS version: 5.1.1:
  • Plugin version: 6.0.12:
  • iOS version: 13.6:

Description

Hi, I found what getUserMedia not handle this case, and in audio object not setted constraints.
getUserMedia handle one of mandatory or optional
{audio: optional: Array(2) 0: {label: "iPhone Микрофон"} 1: {sourceId: "Built-In Microphone"} video: mandatory: sourceId: "com.apple.avfoundation.avcapturedevice.built-in_video:1" optional: Array(7) 0: {minFrameRate: 30} 1: {maxFrameRate: 30} 2: {label: "Front Camera"} 3: {minMinBitrate: 3500} 4: {maxMinBitrate: 3500} 5: {minMaxBitrate: 5000} 6: {maxMaxBitrate: 5000}

I try fix bug local, but anyway got NotAllowedError, and if I disable audio, all works fine
We use Flashphoner library for connect to server

Expected results

Video stream started

Actual results

Got NotAllowedError

@AlekseyPn
Copy link
Author

UPD: I found error reason, it's throw from Flashphoner API by audioContext.createMediaStreamSource.
But getUserMedia not handle my case anyway :)

@hthetiot
Copy link
Contributor

hthetiot commented Sep 1, 2020

iosRTC does not support audioContext.createMediaStreamSource from the iosRTC MediaStream

@hthetiot hthetiot changed the title getUserMedia not handle audio and video constraints fully getUserMedia not handle audio audioContext.createMediaStreamSource Sep 1, 2020
@hthetiot hthetiot added this to the 8.0.x milestone Nov 25, 2020
@hthetiot hthetiot modified the milestones: 8.0.x, 6.2.0 Jan 20, 2021
@jrr8
Copy link

jrr8 commented Feb 17, 2021

I tried using audioContext.createMediaStreamSource to record a MediaStream from iosRTC and then came across this post
when debugging.

Does anyone have any ideas on how to record a MediaStream from iosRTC?

@hthetiot
Copy link
Contributor

@jrr8 it's not supported for now.
It will require lot of work to make it work.

@hthetiot
Copy link
Contributor

Related #506

@hthetiot
Copy link
Contributor

Some people solved it by using this plug-in to my understanding: https://github.com/edimuj/cordova-plugin-audioinput

@jrr8
Copy link

jrr8 commented Feb 17, 2021

Thank you. I saw that plugin too and was considering giving it a shot.

Just so my understanding is clear, an iosRTC MediaStream is probably not going to work with any web audio APIs (with the current version of the plugin). Is that right?

@hthetiot
Copy link
Contributor

hthetiot commented Feb 17, 2021 via email

@hthetiot hthetiot modified the milestones: 6.2.0, triage Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants