mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
fix "source is in track directly"
Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
@@ -59,7 +59,7 @@ async function doConnect(
|
|||||||
const hasMicrophoneTrack = Array.from(
|
const hasMicrophoneTrack = Array.from(
|
||||||
livekitRoom?.localParticipant.audioTracks.values()
|
livekitRoom?.localParticipant.audioTracks.values()
|
||||||
).some((track: LocalTrackPublication) => {
|
).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.
|
// We create a track in case there isn't any.
|
||||||
if (!hasMicrophoneTrack) {
|
if (!hasMicrophoneTrack) {
|
||||||
|
|||||||
Reference in New Issue
Block a user