Share button is not visible in share content in MobileRTC framework

Description
Share button is not visible in share content in MobileRTC framework.

Which iOS Meeting SDK version?
MobileRTC framework

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

  1. Start meeting
  2. Share content
  3. Three options are their i.e. Photos, Website URL and Bookmark
    4 There is no screen share button avaliable

Smartphone (please complete the following information):
iPhone 12 mini
iOS 15.1

Additional context
Share button is not visible in share content in MobileRTC framework.
Please help me out how can I put the share button there in my App.

Hey @bhanu,

Thanks for using the dev forum!

To show this button, you have to implement the onClickShareScreen callback in MobileRTCMeetingServiceDelegate.

Thanks!
Michael

Hello @Michael_Condon

Thanks for your reply!

Can you please share that function with me?

And in this class I need to implement that function?

class SampleHandler: RPBroadcastSampleHandler, MobileRTCScreenShareServiceDelegate {

    var screenShareService: MobileRTCScreenShareService?

    override init() {
        super.init()
        screenShareService?.appGroup = "group.com.hf.ZoomMeeting"
        screenShareService = MobileRTCScreenShareService()
        screenShareService?.delegate = self
    }
    
    override func broadcastStarted(withSetupInfo setupInfo: [String : NSObject]?) {
        // User has requested to start the broadcast. Setup info from the UI extension can be supplied but optional.
        screenShareService?.broadcastStarted(withSetupInfo: setupInfo)
    }
    
    override func broadcastPaused() {
        // User has requested to pause the broadcast. Samples will stop being delivered.
        screenShareService?.broadcastPaused()
    }
    
    override func broadcastResumed() {
        // User has requested to resume the broadcast. Samples delivery will resume.
        screenShareService?.broadcastResumed()
    }
    
    override func broadcastFinished() {
        // User has requested to finish the broadcast.
        screenShareService?.broadcastFinished()
    }
    
    override func processSampleBuffer(_ sampleBuffer: CMSampleBuffer, with sampleBufferType: RPSampleBufferType) {
        self.screenShareService?.processSampleBuffer(sampleBuffer, with: sampleBufferType)
        
        switch sampleBufferType {
        case RPSampleBufferType.video:
            // Handle video sample buffer
            break
        case RPSampleBufferType.audioApp:
            // Handle audio sample buffer for app audio
            break
        case RPSampleBufferType.audioMic:
            // Handle audio sample buffer for mic audio
            break
        @unknown default:
            // Handle other sample buffer types
            fatalError("Unknown type of sample buffer")
        }
    }
    func mobileRTCScreenShareServiceFinishBroadcastWithError(_ error: Error!) {
            finishBroadcastWithError(error)
        print(error)
    }
    
}

Thanks!
Bhanu