Ver código fonte

Log an error when not an audio nor a video track is added

j8
paweldomas 9 anos atrás
pai
commit
0116f547ed
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3
    0
      conference.js

+ 3
- 0
conference.js Ver arquivo

557
                 this.useAudioStream(track);
557
                 this.useAudioStream(track);
558
             } else if (track.isVideoTrack()) {
558
             } else if (track.isVideoTrack()) {
559
                 this.useVideoStream(track);
559
                 this.useVideoStream(track);
560
+            } else {
561
+                console.error(
562
+                    "Ignored not an audio nor a video track: ", track);
560
             }
563
             }
561
         });
564
         });
562
         roomLocker = createRoomLocker(room);
565
         roomLocker = createRoomLocker(room);

Carregando…
Cancelar
Salvar