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

Uses videoType from the video track for the initial value.
This commit is contained in:
hristoterezov 2016-07-21 17:16:17 -05:00 committed by GitHub
commit 7ea047cf1b
1 changed files with 3 additions and 0 deletions

View File

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