mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Fixed zoom in/out icons
parent
02b1af2093
commit
87f43537d2
|
@ -186,15 +186,17 @@ export class StreamComponent implements OnInit {
|
||||||
* @ignore
|
* @ignore
|
||||||
*/
|
*/
|
||||||
toggleVideoEnlarged() {
|
toggleVideoEnlarged() {
|
||||||
if (!!this._stream.streamManager?.stream?.connection?.connectionId) {
|
const connectionId = this._stream.streamManager?.stream?.connection?.connectionId;
|
||||||
if (this.openviduService.isMyOwnConnection(this._stream.streamManager?.stream?.connection?.connectionId)) {
|
if (Boolean(connectionId)) {
|
||||||
this.participantService.toggleMyVideoEnlarged(this._stream.streamManager?.stream?.connection?.connectionId);
|
if (this.openviduService.isMyOwnConnection(connectionId)) {
|
||||||
|
this.participantService.toggleMyVideoEnlarged(connectionId);
|
||||||
} else {
|
} else {
|
||||||
this.participantService.toggleRemoteVideoEnlarged(this._stream.streamManager?.stream?.connection?.connectionId);
|
this.participantService.toggleRemoteVideoEnlarged(connectionId);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
this.checkVideoEnlarged();
|
||||||
this.layoutService.update();
|
this.layoutService.update();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @ignore
|
* @ignore
|
||||||
|
|
Loading…
Reference in New Issue