openvidu-components: Fixed zoom in/out icons

pull/809/head
Carlos Santos 2023-05-30 13:44:53 +02:00
parent 02b1af2093
commit 87f43537d2
1 changed files with 7 additions and 5 deletions

View File

@ -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();
}
/**