finished room test

This commit is contained in:
David Zhao
2020-12-22 20:59:39 -08:00
parent 3518435783
commit 026c8725a3
4 changed files with 73 additions and 18 deletions
+4
View File
@@ -144,6 +144,10 @@ func (r *Room) onTrackAdded(participant Participant, track PublishedTrack) {
// skip publishing peer
continue
}
if existingParticipant.State() != livekit.ParticipantInfo_JOINED {
// not fully joined. don't subscribe yet
continue
}
if err := track.AddSubscriber(existingParticipant); err != nil {
logger.GetLogger().Errorw("could not subscribe to remoteTrack",
"srcParticipant", participant.ID(),