fix "source is in track directly"

Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
Timo K
2023-09-18 12:32:46 +02:00
parent d651e76af9
commit 54f29c036d

View File

@@ -59,7 +59,7 @@ async function doConnect(
const hasMicrophoneTrack = Array.from(
livekitRoom?.localParticipant.audioTracks.values()
).some((track: LocalTrackPublication) => {
return track.options?.source == Track.Source.Microphone;
return track.source == Track.Source.Microphone;
});
// We create a track in case there isn't any.
if (!hasMicrophoneTrack) {