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