# Direct share screen by meetingNumber or shareKey

**URL:** <https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324>\
**Category:** macOS\
**Created:** [May 28, 2020, 1:26am UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324 "2020-05-28T01:26:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [May 28, 2020, 1:26am UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324/1 "2020-05-28T01:26:52Z")

</div>

**Description**  
i want use the class of “ZoomSDKDirectShareHelper” to start a direct screen share ,but it is faild, and the meetingwindow doesn’t show。the change is based on “zoomSDKSample”

```auto
@property ( nonatomic , strong ) ZoomSDKDirectShareHelper* sharehelper;
    ZoomSDKPremeetingService *service = [[ZoomSDK sharedSDK] getPremeetingService];
    if (service) {
        self.sharehelper = [service getDirectShareHelper];
        self.sharehelper.delegate = self;
    }
#pragma mark:share delegate
- (void)onDirectShareStatusReceived:(DirectShareStatus)status DirectShareReceived:(ZoomSDKDirectShareHandler *)handler{
    if (status == DirectShareStatus_NeedMeetingIDOrSharingKey) {
        [handler inputMeetingNumber:@"864114769"];
    }else if(status == DirectShareStatus_Ended) {
// ZoomSDKMeetingService *service = [[ZoomSDK sharedSDK] getMeetingService];
    }
}

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dd30cf4ddbf61b304373ea773ec4dd4f3bdb61da.png)  
**Which version?**  
v4.6.21666.0427

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

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Version [e.g. 22]

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 2, 2020, 5:54am UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324/2 "2020-06-02T05:54:10Z")

</div>

Hi @597035146,

Thanks for the post. What is the return value of the start a direct screen share interface? Are you getting any error? Is the following callback being triggered?

```auto
-(void)onDirectShareStatusReceived:(DirectShareStatus)status DirectShareReceived:(ZoomSDKDirectShareHandler*)handler;

```

Thanks!

---

<div class="post-metadata">

**Author:** ![597035146](https://avatars.discourse-cdn.com/v4/letter/5/b2d939/32.png) [@597035146](https://devforum.zoom.us/u/597035146)\
**Post date:** [June 3, 2020, 1:17am UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324/3 "2020-06-03T01:17:28Z")

</div>

The callback has been triggered, and back “DirectShareStatus\_NeedMeetingIDOrSharingKey”,it is fine。but in the following callback, i can only get “ZoomSDKMeetingStatus\_Connecting”,and failed to get “ZoomSDKMeetingStatus\_InMeeting”, it caused me can’t show the “ShareSelectWindow”。

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7f8ab86550a7ae5f27da5b7b17d9818f5ffc6a1a.png)

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [June 5, 2020, 9:12am UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324/4 "2020-06-05T09:12:15Z")

</div>

Hi @597035146,

Thanks for the reply. We are able to identify an issue with this case: the direct share can’t show the share select window. We will fix this in the next release.

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:53pm UTC](https://devforum.zoom.us/t/direct-share-screen-by-meetingnumber-or-sharekey/19324/5 "2020-08-21T21:53:32Z")

</div>

Closed on August 21, 2020, 9:53pm UTC


