Merge pull request #831 from robintown/no-video-mute

Leave audio elements unmuted regardless of mute state
This commit is contained in:
Robin 2023-01-06 12:08:13 -05:00 committed by GitHub
commit 767f9cdc4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,14 +31,15 @@ export const AudioSink: React.FC<Props> = ({
tileDescriptor, tileDescriptor,
audioOutput, audioOutput,
}: Props) => { }: Props) => {
const { audioMuted, localVolume, stream } = useCallFeed( const { localVolume, stream } = useCallFeed(tileDescriptor.callFeed);
tileDescriptor.callFeed
);
const audioElementRef = useMediaStream( const audioElementRef = useMediaStream(
stream, stream,
audioOutput, audioOutput,
audioMuted, // We don't compare the audioMuted flag of useCallFeed here, since unmuting
// depends on to-device messages which may lag behind the audio actually
// starting to flow over the stream
tileDescriptor.isLocal,
localVolume localVolume
); );