bizupssc
(Bordin)
February 10, 2022, 8:26am
1
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:
Host start meeting’
Host tap on start video and then stop video
Host tap on start share screen.
See black screen on my app
Smartphone (please complete the following information):
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.
jon.zoom
(Jon)
February 10, 2022, 6:40pm
2
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!
bizupssc
(Bordin)
February 11, 2022, 1:37am
3
Thanks for reply
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.zoom
(Jon)
February 22, 2022, 7:08pm
5
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!
system
(system)
Closed
March 25, 2022, 5:09am
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.