|
@@ -246,9 +246,12 @@ RemoteVideo.prototype._requestRemoteControlPermissions = function () {
|
246
|
246
|
{user: this.user.getDisplayName()
|
247
|
247
|
|| interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME}
|
248
|
248
|
);
|
249
|
|
- let pinnedId = this.VideoLayout.getPinnedId();
|
250
|
|
- if(pinnedId !== this.id) {
|
251
|
|
- this.VideoLayout.handleVideoThumbClicked(this.id);
|
|
249
|
+ if(result === true) {//the remote control permissions has been granted
|
|
250
|
+ // pin the controlled participant
|
|
251
|
+ let pinnedId = this.VideoLayout.getPinnedId();
|
|
252
|
+ if(pinnedId !== this.id) {
|
|
253
|
+ this.VideoLayout.handleVideoThumbClicked(this.id);
|
|
254
|
+ }
|
252
|
255
|
}
|
253
|
256
|
}, error => {
|
254
|
257
|
logger.error(error);
|