WINDOWS SDK CAN'T SHOW SHARING TOOLBAR WHEN I USE JOIN API

I use Join API because I am student role in the meeting. Then I share my desktop to teacher. 

when I use Join API to go to meeting, the sharing toolbar is not visible at the top of view. but it’s visible in windows status bar. 

If I change Start API to goto meeting, it works well. 
This issue is not exist when I use old version which released in 2017 year. 

I use the same Join API in Mac OS, it’s working well.

I try add these function, but it’s still hidden status. 
void CMeetingServiceMgr::onSharingStatus(ZOOM_SDK_NAMESPACE::SharingStatus status, unsigned int userId) 

printf(“enter onSharingStatus: %d, %d”, status, userId); 
//todo 
if (status == ZOOM_SDK_NAMESPACE::Sharing_Self_Send_Begin) 

//this->m_pAnnotationCtrl->StartAnnotation(ZOOM_SDK_NAMESPACE::SDK_FIRST_VIEW, 10, 10); 
ZOOM_SDK_NAMESPACE::SDKError result; 
result = this->m_pUICtrl->ShowSharingToolbar(true); 
printf(“ShowSharingToolbar result: %d”, result); 
result = this->m_pUICtrl->ShowSharingFrameWindows(true); 
printf(“ShowSharingFrameWindows result: %d”, result); 

//result = this->m_pUICtrl->ShowBottomFloatToolbarWnd(true); 
//printf(“ShowBottomFloatToolbarWnd result: %d”, result); 

}

I have try these versions, all of them has the same issue.

the view please look at my attachment files

Please tell me it’s a bug or my own usage issue?

https://sy-file-res.oss-cn-beijing.aliyuncs.com/join.jpg  is the screen shot after I join meeting

onSharingStatus() callback function is not the right place to call ShowSharingToolbar(true).

If you want to show it correctly, please call it before you start to share your app/destop. Something like the following code.

ZOOM_SDK_NAMESPACE::IMeetingShareController* pCtrl = m_pMeetingService->GetMeetingShareController();
if (pCtrl == NULL)
    return false;

if (m_pMeetingService->GetMeetingConfiguration())
{
    m_pMeetingService->GetMeetingConfiguration()->SetSharingToolbarVisibility(true);

   //some other callings goes here
}

if (pCtrl->StartWhiteBoardShare() != ZOOM_SDK_NAMESPACE::SDKERR_SUCCESS)
   return false;

 

Hope  this is useful for you! Enjoy ZOOM SDK!

1 Like