# Audio not shared while sharing screen

**URL:** <https://devforum.zoom.us/t/audio-not-shared-while-sharing-screen/21357>\
**Category:** iOS\
**Created:** [June 15, 2020, 8:11am UTC](https://devforum.zoom.us/t/audio-not-shared-while-sharing-screen/21357 "2020-06-15T08:11:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander.j](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alexander.j/32/4137_2.png) [@alexander.j](https://devforum.zoom.us/u/alexander.j)\
**Post date:** [June 15, 2020, 8:11am UTC](https://devforum.zoom.us/t/audio-not-shared-while-sharing-screen/21357/1 "2020-06-15T08:11:15Z")

</div>

**Description**  
We have integrated screen sharing but the audio of videos played on the device from which screen is shared is not audible to other participants. The audio via mic is audible. We are using custom UI.

**Which version?**  
mobileRTCVersion - 4.6.21666.0428

**Screenshots**

 ![IMG_0785 copy](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/d/dc205289f70546cc72297c1dd444f3c5e4e5f2f4.png)  
When we start broadcasting this particular UI doesn’t appear in our custom UI. Which method is called to toggle Share Device Audio. Please refer to the screenshot.

**code used to start broadcast**  
if #available(iOS 12.0, \*) {  
let broadcastView = RPSystemBroadcastPickerView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width / 2, height: UIScreen.main.bounds.size.height / 2))  
broadcastView.preferredExtension = “com.fastforward.app.infiny.screenshare”

```
let buttonPressed = NSSelectorFromString("buttonPressed:")
if broadcastView.responds(to: buttonPressed) {
    for subview in broadcastView.subviews {
        print("broadcastView.subviews",broadcastView.subviews)
        if let button = subview as? UIButton {
            button.sendActions(for: UIControl.Event.allTouchEvents)
        }
    }
    
} else {
    // Fallback on earlier versions
}

```

}

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

- Device: iPhone 6 plus–Software version- 12.4.6 / iPhone 11–Software version- 13.3.1

**Additional context**  
Is there any way we can toggle the Share Device Audio programmatically in our own custom UI.

---

<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 17, 2020, 5:34am UTC](https://devforum.zoom.us/t/audio-not-shared-while-sharing-screen/21357/2 "2020-06-17T05:34:00Z")

</div>

Hi @alexander.j,

Thanks for the post. Based on the code snippet, it seems like you are using Custom UI. The audio share interface is currently not available in the Custom UI. I have forwarded this as a feature request to the engineering team.

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, 10:05pm UTC](https://devforum.zoom.us/t/audio-not-shared-while-sharing-screen/21357/3 "2020-08-21T22:05:20Z")

</div>


