Merge branch 'main' into update-js-sdk
This commit is contained in:
commit
7769074410
1 changed files with 5 additions and 4 deletions
|
@ -31,14 +31,15 @@ export const AudioSink: React.FC<Props> = ({
|
|||
tileDescriptor,
|
||||
audioOutput,
|
||||
}: Props) => {
|
||||
const { audioMuted, localVolume, stream } = useCallFeed(
|
||||
tileDescriptor.callFeed
|
||||
);
|
||||
const { localVolume, stream } = useCallFeed(tileDescriptor.callFeed);
|
||||
|
||||
const audioElementRef = useMediaStream(
|
||||
stream,
|
||||
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
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue