Date: Thu, 28 Mar 2024 22:56:11 +0100 (CET) Message-ID: <1162597286.47219.1711662971941@docs.flashphoner.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_47218_526661787.1711662971941" ------=_Part_47218_526661787.1711662971941 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
=D0=94=D0=BB=D1=8F =D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0= =B5=D0=BD=D0=B8=D1=8F =D0=BF=D0=BE=D1=82=D0=BE=D0=BA=D0=B0 =D0=B2=D0=BE =D0= =B2=D0=B5=D1=81=D1=8C =D1=8D=D0=BA=D1=80=D0=B0=D0=BD =D1=80=D0=B5=D0=BA=D0= =BE=D0=BC=D0=B5=D0=BD=D0=B4=D1=83=D0=B5=D1=82=D1=81=D1=8F =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0= =B7=D0=BE=D0=B2=D0=B0=D1=82=D1=8C RTCMTLVideoView, =D0=BF=D0=BE=D1=81=D0=BA=D0=BE=D0=BB=D1=8C=D0=BA=D1= =83 RTCEAGLVideoView =D0=B8=D1=81=D0=BA=D0=B0=D0=B6=D0=B0=D0=B5=D1=82 = =D0=BF=D1=80=D0=BE=D0=BF=D0=BE=D1=80=D1=86=D0=B8=D0=B8 =D0=BF=D1=80=D0=B8 = =D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D0=B8 =D1=80=D0=B0=D0=B7= =D0=BC=D0=B5=D1=80=D0=BE=D0=B2
id<MTLDevic= e> remoteDevice; #ifdef __aarch64__ remoteDevice =3D MTLCreateSystemDefaultDevice(); if (remoteDevice) { RTCMTLVideoView *remoteView =3D [[RTCMTLVideoView alloc] init]; remoteView.delegate =3D self; remoteView.videoContentMode =3D UIViewContentModeScaleAspectFit; _remoteDisplay =3D remoteView; _remoteDisplay.backgroundColor =3D [UIColor blackColor]; UITapGestureRecognizer *singleFingerTap =3D [[UITapGestureRecognize= r alloc] initWithTarget:self action:@selector(fullscreenButton:)]; singleFingerTap.numberOfTapsRequired =3D 2; [_remoteDisplay addGestureRecognizer:singleFingerTap]; } #endif if (!_remoteDisplay) { RTCEAGLVideoView *remoteView =3D [[RTCEAGLVideoView alloc] init]; remoteView.delegate =3D self; _remoteDisplay =3D remoteView; } _remoteDisplay.translatesAutoresizingMaskIntoConstraints =3D NO;= =20
=D0=94=D0=BB=D1=8F =D0=BF=D0=B5=D1=80=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0= =B5=D0=BD=D0=B8=D1=8F =D0=B2 =D0=BF=D0=BE=D0=BB=D0=BD=D1=8B=D0=B9 =D1=8D=D0= =BA=D1=80=D0=B0=D0=BD =D0=B7=D0=B0=D0=B4=D0=B0=D0=B5=D0=BC =D1=8D=D0=BB=D0= =B5=D0=BC=D0=B5=D0=BD=D1=82=D1=83, =D0=B2 =D0=BA=D0=BE=D1=82=D0=BE=D1=80=D0= =BE=D0=BC =D0=BF=D1=80=D0=BE=D0=B8=D0=B3=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D1= =82=D1=81=D1=8F =D0=BF=D0=BE=D1=82=D0=BE=D0=BA, =D1=80=D0=B0=D0=B7=D0=BC=D0= =B5=D1=80=D1=8B =D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0=B0 =D0=B2 =D0=BA=D0=B0=D1= =87=D0=B5=D1=81=D1=82=D0=B2=D0=B5 =D0=BC=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0= =B0=D0=BB=D1=8C=D0=BD=D1=8B=D1=85
[_remoteDi= splay.widthAnchor constraintEqualToConstant: [[UIScreen mainScreen] bounds]= .size.width].active =3D YES; [_remoteDisplay.heightAnchor constraintEqualToConstant:[[UIScreen m= ainScreen] bounds].size.height].active =3D YES; [_remoteDisplay removeFromSuperview]; [_scrollView addSubview:_remoteDisplay];=20
=D0=94=D0=BB=D1=8F =D0=B2=D1=8B=D1=85=D0=BE=D0=B4=D0=B0 =D0=B8=D0=B7 =D0= =BF=D0=BE=D0=BB=D0=BD=D0=BE=D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0=BD=D0=BE=D0=B3= =D0=BE =D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B0 =D0=B7=D0=B0=D0=B4=D0=B0=D0=B5= =D0=BC =D1=8D=D0=BB=D0=B5=D0=BC=D0=B5=D0=BD=D1=82=D1=83, =D0=B2 =D0=BA=D0= =BE=D1=82=D0=BE=D1=80=D0=BE=D0=BC =D0=BF=D1=80=D0=BE=D0=B8=D0=B3=D1=80=D1= =8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F =D0=BF=D0=BE=D1=82=D0=BE=D0=BA, =D1= =80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D1=8B =D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0= =B9=D0=BD=D0=B5=D1=80=D0=B0 =D0=BD=D0=B0 =D1=8D=D0=BA=D1=80=D0=B0=D0=BD=D0= =B5
[_remoteDi= splay removeFromSuperview]; [_videoContainer addSubview:_remoteDisplay]; =20 NSLayoutConstraint *constraint =3D[NSLayoutConstraint constraintWit= hItem:_remoteDisplay attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRel= ationEqual toItem:_remoteDisplay attribute:NSLayoutAttributeHeight multipli= er:640.0/480.0 constant:0]; [_remoteDisplay addConstraint:constraint]; constraint =3D[NSLayoutConstraint constraintWithItem:_remoteDisplay= attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationLessThanOrEqual= toItem:_videoContainer attribute:NSLayoutAttributeWidth multiplier:1.0 con= stant:0]; [_videoContainer addConstraint:constraint]; [_videoContainer addConstraints:[NSLayoutConstraint constraintsWith= VisualFormat:@"H:|[remoteDisplay]|" options:NSLayoutFormatAlignAllTop metri= cs:@{} views:@{@"remoteDisplay": _remoteDisplay}]]; [_videoContainer addConstraints:[NSLayoutConstraint constraintsWith= VisualFormat:@"V:|[remoteDisplay]|" options:0 metrics:@{} views:@{@"remoteD= isplay": _remoteDisplay}]];=20