use full candidateInit, update encoding

This commit is contained in:
David Zhao
2020-12-03 21:58:25 -08:00
parent bca8090b41
commit c64ecc4603
7 changed files with 59 additions and 52 deletions
+4
View File
@@ -76,6 +76,10 @@ func (r *Room) Join(participant *Participant) error {
// subscribe participant to existing tracks
for _, p := range r.participants {
if p.id == participant.id {
// don't send to itself
continue
}
if err := p.AddSubscriber(participant); err != nil {
// TODO: log error? or disconnect?
logger.GetLogger().Errorw("could not subscribe to participant",