Question
Can we share our entire device screen using Android and iOS SDK or screen share outside my application?
Applies To
- iOS SDK
- Android SDK
- Screen Share
Answer
We do not support screensharing outside application in native SDKs due to security reasons, but this can be achieved by following approaches:
In Android:
You need to use the Media Projection API together with Opentok Environment Custom Capturer or Unified Environment Custom Capturer.
You can also refer to the sample for reference: https://github.com/nexmo-se/opentok-screenshare-android-sample
In iOS:
You need to use the iOS ReplayKit together with Opentok Environment Custom Capturer or Unified Environment Custom Capturer.
You can also refer to the sample for reference: https://github.com/nexmo-se/vonage-video-ios-screenshare-replaykit
Additional Information
Articles in this section
- Screensharing outside Native SDK Application
- How many participants can join an Android session?
- Where can I see the sample code for Vonage Video Android SDK?
- What devices does the Vonage Video Android SDK support?
- Inline Installation of Screen Sharing Extensions in Chrome Deprecated
- Where can I get the Vonage Video API Android SDK?
- Why READ_PHONE_STATE permission is required while using Video API Android SDK?
- How to avoid Gradle build failure with OpenTok Android SDK 2.22.0+