Merge pull request #743 from jitsi/handle-initial-videotype
Uses videoType from the video track for the initial value.
This commit is contained in:
commit
7ea047cf1b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue