[Webkit-unassigned] [Bug 177292] Audio stream volume example doesn't work

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 15 12:06:07 PST 2017


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

--- Comment #14 from Eric Carlson <eric.carlson at apple.com> ---
(In reply to Chad Phillips from comment #12)
> While this is in progress, can anybody share an actual working example of
> getting the microphone input currently?
> 
> @Eric Carlson suggested AudioContext.startRendering(), but it doesn't look
> to me like that's an actual method. OfflineaudioContext.startRendering() is,
> but I'm guessing that's not correct, either.
> 
> I've tried HTMLMediaElement.play() as well to no effect.

Sorry about that, startRendering is indeed on OfflineaudioContext. You can use AudioContext.resume to start playback. 

I have attached a modified version of your test case that adds a button which starts and stops the audio context. hark.js doesn't expose the audio context, so I modified it to add suspend and resume methods, a state property, and to emit an event when the context state changes.

-- 
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/20171115/9e396e11/attachment.html>


More information about the webkit-unassigned mailing list