get Display Media
Captures the screen for sharing.
On Android, this uses MediaProjection API which requires:
Activity context with MediaProjectionManager
User permission via startActivityForResult
MediaProjection intent data passed to this method
On iOS, this uses ReplayKit.
Return
MediaStream containing the screen capture track
Parameters
constraints
Screen capture constraints including:
video: Map with width, height, frameRate
audio: Boolean for system audio capture (platform-dependent)
Throws
if screen capture is not supported on this platform