Black Screen when receive screen sharing

Description
Hi Zoom. !
When Host start share their screen, I (Attendee & Participant) have got black screen on my custom application.
I have the same code from the example.

BOOL sharing = (0 != userID);
    if (sharing)
    {
//        self.topPanelView.shrinkBtn.hidden = YES;
        MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
        //Local Side Share
        if ([ms isSameUser:[ms myselfUserID] compareTo:userID])
        {
            [self.customMeetingVC showLocalShareView];
        }
        //Remote Side Share
        else
        {
            self.customMeetingVC.remoteShareVC.activeShareID = userID;
            [self.customMeetingVC showRemoteShareView];
        }
    }
    else
    {
//        self.topPanelView.shrinkBtn.hidden = NO;
        [self.customMeetingVC hideAnnotationView];
        [self.customMeetingVC showVideoView];
       
    }
- ( **void** )showRemoteShareView

{

NSLog(@"=>>>>> showRemoteShareView");

[ **self** removeAllSubView];

[ **self** showSubView: **self** .remoteShareVC];

[ **self** showAnnotationView];

}

Which iOS Meeting SDK version?
v5.9.3.2512

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Host start meeting’
  2. Host tap on start video and then stop video
  3. Host tap on start share screen.
  4. See black screen on my app

Smartphone (please complete the following information):

  • IOS deviece

Additional context
The problem occur when host start and stop camera before share their screen.

Ps. I'm not implement share screen in my application. I just want to receive shared screen by host.

Hi @bizupssc,

Can you please provide a code snippet showing how you are setting up the share view in your app? The code snippet you’ve provided is only using a showRemoteShareView method which is not part of the Meeting SDK.

Thanks!

Thanks for reply :slight_smile:
90% of my code is from your example.
Here a code of my ShareView


#import "RemoteShareViewController.h"

#import "CustomRemoteControl.h"

**@interface** RemoteShareViewController ()

**@property** ( **strong** , **nonatomic** ) CustomRemoteControl *remoteControl;

**@end**

**@implementation** RemoteShareViewController

- ( **void** )viewDidLoad {

[ **super** viewDidLoad];

// Do any additional setup after loading the view.

**self** .view.backgroundColor = [UIColor clearColor];

[ **self** .view addSubview: **self** .shareView];

[ **self** .remoteControl setupRemoteControl: **self** .shareView];

}

- ( **void** )didReceiveMemoryWarning {

[ **super** didReceiveMemoryWarning];

// Dispose of any resources that can be recreated.

}

- ( **void** )dealloc

{

**self** .shareView = **nil** ;

**self** .remoteControl = **nil** ;

}

- ( **void** )viewDidLayoutSubviews

{

[ **super** viewDidLayoutSubviews];

**self** .shareView.frame = **self** .view.bounds;

}

- ( **void** )viewDidAppear:( **BOOL** )animated

{

[ **super** viewDidAppear:animated];

[ **self** updateShareView];

}

- ( **void** )viewDidDisappear:( **BOOL** )animated

{

[ **super** viewWillDisappear:animated];

[ **self** .shareView stopActiveShare];

}

#pragma mark **- MobileRTCVideoView**

- (MobileRTCActiveShareView *)shareView

{

**if** (!_shareView)

{

_shareView = [[MobileRTCActiveShareView alloc] initWithFrame: **self** .view.bounds];

}

**return** _shareView;

}

- ( **void** )updateShareView

{

**if** (0 != **self** .activeShareID)

{

[ **self** .shareView showActiveShareWithUserID: **self** .activeShareID];

}

**else**

{

[ **self** .shareView stopActiveShare];

}

}

#pragma mark **- CustomRemoteControl**

- (CustomRemoteControl *)remoteControl

{

**if** (!_remoteControl)

{

_remoteControl = [[CustomRemoteControl alloc]init];

}

**return** _remoteControl;

}

**@end**

And then in CustomMeetingViewController

- (RemoteShareViewController*)remoteShareVC
{
    if (!_remoteShareVC)
    {
        _remoteShareVC = [[RemoteShareViewController alloc] init];
        _remoteShareVC.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
        UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onViewOnClick)];
        [_remoteShareVC.shareView addGestureRecognizer:tapGesture];
    }
    return _remoteShareVC;
}

@jon.lieblich Any update?

Hi @bizupssc,

If you are mostly using the same code as the sample app, can you please verify whether or not you are able to reproduce using an unmodified version of the sample app?

Thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.