[Webkit-unassigned] [Bug 180522] Web audio without audio output should not require any user gesture on iOS

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 1 05:37:57 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=180522

daginge at confrere.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daginge at confrere.com

--- Comment #10 from daginge at confrere.com ---
We hit this bug as well, where we want to do an automated microphone check for users on their way into a conversation. Our code looks something like this:

function handleUserClick() {
    return mediaDevicesService
      .getUserMedia(constraints)
      .then(mediaStream => {
        this.setState({ mediaStream });
      })
      .then(() => enumerateDevices())
      .then(() => verifyMicrophoneWorks(this.state.mediaStream.stream))
      .then(isMicrophoneWorking =>
        this.props.updateMicStatus(isMicrophoneWorking)
      )
      .catch(error => <GetUserMediaErrorFeedback error={error} />);
}

This all happens in a single promise-chain, but because only the original button click is triggered as a user action, the audio context checking fails, even if all we do is check the getByteFrequencyData, and no audio is actually playing.

It would be great if we were allowed to play audio/handle AudioContext once getUserMedia permission is granted for the page for that session.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180301/aa58f6fe/attachment.html>


More information about the webkit-unassigned mailing list