Screensharing outside Native SDK Application Screensharing outside Native SDK Application

Screensharing outside Native SDK Application

Vonage API Support

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

How to recognize if I’m using Vonage Video API Unified Environment or Vonage Video API OpenTok environment?

Screen Sharing Support on Mobile Devices

How do I add screen sharing to my app?