Share a screen using Daily’s Android SDK
Screen sharing enables the local participant to display the contents of their screen to other users in the meeting. Before you begin, ensure that you understand how to start a video call. For details, see the Android Overview. This guide will describe how to implement screen sharing using the Android SDK, showing you some examples, and pointing you to where you can learn more.How to start a screen share
The first task for the app is to request theMediaProjection permission activity.
It must validate that the result code is Activity.RESULT_OK before calling the Daily SDK to initiate the screen sharing.
Once the permission is granted, the daily-android SDK can be invoked to start screen sharing.
The following code snippet shows how you might start a screen share:
To confirm that screen sharing started, listen for onInputsUpdated event and check the property
screenVideo.