feat(tile-view): double click to pin

This commit is contained in:
Leonard Kim
2019-01-02 09:43:20 +01:00
committed by Saúl Ibarra Corretgé
parent fc75adc6ff
commit ebcde745ef
6 changed files with 98 additions and 89 deletions
+4 -8
View File
@@ -15,11 +15,14 @@ export default function SharedVideoThumb(participant, videoType, VideoLayout) {
this.videoSpanId = 'sharedVideoContainer';
this.container = this.createContainer(this.videoSpanId);
this.$container = $(this.container);
this.container.onclick = this.videoClick.bind(this);
this.bindHoverHandler();
SmallVideo.call(this, VideoLayout);
this.isVideoMuted = true;
this.setDisplayName(participant.name);
this.container.onclick = this._onContainerClick;
this.container.ondblclick = this._onContainerDoubleClick;
}
SharedVideoThumb.prototype = Object.create(SmallVideo.prototype);
SharedVideoThumb.prototype.constructor = SharedVideoThumb;
@@ -61,13 +64,6 @@ SharedVideoThumb.prototype.createContainer = function(spanId) {
return container;
};
/**
* The thumb click handler.
*/
SharedVideoThumb.prototype.videoClick = function() {
this._togglePin();
};
/**
* Removes RemoteVideo from the page.
*/