Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd6320b5b5 |
@ -66,7 +66,7 @@ room.registerTextStreamHandler("lk.transcription", async (reader, participantInf
|
|||||||
// Due to a bug in LiveKit Server the participantInfo object may be empty.
|
// Due to a bug in LiveKit Server the participantInfo object may be empty.
|
||||||
// You can still get the participant owning the audio track like below:
|
// You can still get the participant owning the audio track like below:
|
||||||
let participant;
|
let participant;
|
||||||
if (localParticipant.audioTrackPublications.has(trackId)) {
|
if (room.localParticipant.audioTrackPublications.has(trackId)) {
|
||||||
participant = room.localParticipant;
|
participant = room.localParticipant;
|
||||||
} else {
|
} else {
|
||||||
participant = room.remoteParticipants.values().find(p => p.audioTrackPublications.has(trackId));
|
participant = room.remoteParticipants.values().find(p => p.audioTrackPublications.has(trackId));
|
||||||
@ -100,7 +100,7 @@ room.registerTextStreamHandler("lk.transcription", async (reader, participantInf
|
|||||||
|
|
||||||
// Publish your camera and microphone
|
// Publish your camera and microphone
|
||||||
await room.localParticipant.enableCameraAndMicrophone();
|
await room.localParticipant.enableCameraAndMicrophone();
|
||||||
const localVideoTrack = this.room.localParticipant.videoTrackPublications
|
const localVideoTrack = room.localParticipant.videoTrackPublications
|
||||||
.values()
|
.values()
|
||||||
.next().value.track;
|
.next().value.track;
|
||||||
addTrack(localVideoTrack, userName, true);
|
addTrack(localVideoTrack, userName, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user