[Webkit-unassigned] [Bug 172261] New: createMediaStreamSource only works when called shortly after stream is created
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 17 22:19:47 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=172261
Bug ID: 172261
Summary: createMediaStreamSource only works when called shortly
after stream is created
Product: WebKit
Version: WebKit Local Build
Hardware: Macintosh
OS: macOS 10.12
Status: NEW
Severity: Normal
Priority: P2
Component: Web Audio
Assignee: webkit-unassigned at lists.webkit.org
Reporter: andrew at tokbox.com
WebKit's createMediaStreamSource has a bug which requires it to be called very soon after the stream is created. If called after a delay it appears to produce a silent webaudio node.
navigator.mediaDevices.getUserMedia({ audio: true }).then((stream) => {
cleanupJobs.push(() => stream.getTracks().forEach(track => track.stop()));
if (useDelay) {
// Bug occurs
return delay(500).then(() => stream);
}
// Bug does not occur
return stream;
}).then((stream) => {
const source = audioCtx.createMediaStreamSource(stream);
// ... Visualize audio data from source
};
Super easy repro here:
https://output.jsbin.com/hegijaz
Built from github hash 141b0ddff819d52e6e8ceeed29dc72fba5d4b1a6, git-svn-id: http://svn.webkit.org/repository/webkit/trunk@216354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
--
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/20170518/7fafafaa/attachment.html>
More information about the webkit-unassigned
mailing list