File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,10 @@ - (dispatch_queue_t)methodQueue {
108108
109109- (void )addLocalView : (TVIVideoView *)view {
110110 [self .localVideoTrack addRenderer: view];
111+ [self updateLocalViewMirroring: view];
112+ }
113+
114+ - (void )updateLocalViewMirroring : (TVIVideoView *)view {
111115 if (self.camera && self.camera .device .position == AVCaptureDevicePositionFront) {
112116 view.mirror = true ;
113117 }
@@ -161,6 +165,9 @@ - (void)addParticipantView:(TVIVideoView *)view sid:(NSString *)sid trackSid:(NS
161165 TVIVideoFormat *startFormat,
162166 NSError *error) {
163167 if (!error) {
168+ for (TVIVideoView *renderer in self.localVideoTrack .renderers ) {
169+ [self updateLocalViewMirroring: renderer];
170+ }
164171 [self sendEventCheckingListenerWithName: cameraDidStart body: nil ];
165172 }
166173 }];
You can’t perform that action at this time.
0 commit comments