瀏覽代碼

Merge pull request #743 from jitsi/handle-initial-videotype

Uses videoType from the video track for the initial value.
j8
hristoterezov 8 年之前
父節點
當前提交
7ea047cf1b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      modules/UI/videolayout/RemoteVideo.js

+ 3
- 0
modules/UI/videolayout/RemoteVideo.js 查看文件

@@ -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;

Loading…
取消
儲存