Pārlūkot izejas kodu

Uses videoType from the video track for the initial value.

Handles the case where the remote track is with initial value of camera and no further events are received for video type changed.
master
damencho 9 gadus atpakaļ
vecāks
revīzija
74ece3a775
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3
    0
      modules/UI/videolayout/RemoteVideo.js

+ 3
- 0
modules/UI/videolayout/RemoteVideo.js Parādīt failu

@@ -210,6 +210,9 @@ RemoteVideo.prototype.addRemoteStreamElement = function (stream) {
210 210
     let isVideo = stream.isVideoTrack();
211 211
     isVideo ? this.videoStream = stream : this.audioStream = stream;
212 212
 
213
+    if (isVideo)
214
+        this.setVideoType(stream.videoType);
215
+
213 216
     // Add click handler.
214 217
     let onClickHandler = (event) => {
215 218
         let source = event.target || event.srcElement;

Notiek ielāde…
Atcelt
Saglabāt