const primaryAudioTrack = stream.getTrackById(
"69f8520f-d94e-43f0-8a7c-77b1774f3b8f",
);
const commentaryTrack = stream.getTrackById(
"b5410643-2549-491e-b0f7-f08a4ebe54b8",
);
primaryAudioTrack.applyConstraints({ volume: 0.5 });
commentaryTrack.enabled = true;MediaStream: getTrackById() method / notebook
MediaStream: getTrackById() method
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.