Merge remote-tracking branch 'upstream/main' into SimonBrandner/fix/audio

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2022-08-12 20:54:04 +02:00
11 changed files with 338 additions and 171 deletions

View File

@@ -39,7 +39,7 @@ export function AudioForParticipant({
const sourceRef = useRef<MediaStreamAudioSourceNode>();
useEffect(() => {
if (!item.isLocal && stream.getAudioTracks().length > 0 && audioContext) {
if (!item.isLocal && audioContext) {
if (!gainNodeRef.current) {
gainNodeRef.current = new GainNode(audioContext, {
gain: localVolume,