RTCForge API Reference v1.1.1
    Preparing search index...

    Function getDisplayMedia

    • Prompts the user to share a screen, window, or tab. Thin wrapper over navigator.mediaDevices.getDisplayMedia.

      Parameters

      • constraints: DisplayMediaStreamOptions = {}

        Display capture options (e.g. video/audio, cursor). Defaults to {}.

      Returns Promise<MediaStream>

      The captured display media stream.

      A DOMException if the user cancels or capture is not permitted.