Bug 233204 - Connecting an AudioContext to a video causes the volume control to fail.
Summary: Connecting an AudioContext to a video causes the volume control to fail.
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-11-16 10:56 PST by Leon
Modified: 2021-11-23 10:57 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leon 2021-11-16 10:56:41 PST
When you place a video on a webpage and then connect an AudioContext to it, the volume control is not working anymore, as opposed to others browsers in the industry.

This breaks ability to change volume easily while applying live audio modifications to a video.

Here is a simple example with a gain node:

let context = new window.AudioContext();
let gain_node = context.createGain();
let source = context.createMediaElementSource(document.getElementById('video'));
source.connect(gain_node);
gain_node.connect(context.destination);
Comment 1 Radar WebKit Bug Importer 2021-11-23 10:57:18 PST
<rdar://problem/85709135>