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

Audio output is delayed #24

Open
spiffytech opened this issue Jun 8, 2018 · 0 comments
Open

Audio output is delayed #24

spiffytech opened this issue Jun 8, 2018 · 0 comments

Comments

@spiffytech
Copy link

Expected Behaviour

Audio from the mic is output within a couple hundred milliseconds

Actual Behaviour

Audio is output 1s+ later

Reproduce Scenario (including but not limited to)

Echoing the mic input out the speaker to create a microphone app

Steps to Reproduce

Pipe an audio stream to an HTML5 audio element:

<audio autoplay></audio>
...
const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false})
myHtml5AudioElement.srcObject = stream;

I confirmed that there is no delay for non-mic other webaudio workloads like this synth

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Android 7.1-8.1

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Android simulator, OnePLus 5, Altatel 798BL

Cordova CLI version and cordova platform version

cordova --version                                    # e.g. 6.0.0
cordova platform version android                     # e.g. 4.1.1

Plugin version

$ phonegap cordova --version
8.0.0

$ phonegap cordova platform version android
Installed platforms:
  android 7.0.0
  browser 5.0.3
Available platforms:
  ios ~4.5.4
  osx ~4.0.1
  windows ~5.0.0
  www ^3.12.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant