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,
|
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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue