MediaSFU Shared
    Preparing search index...

    Function getScreenShareStream

    • The active screen share, remote first.

      remoteScreenStream is an array in some SDK paths and a bare object in others; both shapes are handled here so callers do not have to guess.

      Parameters

      Returns ScreenShareState

      const share = getScreenShareStream({ parameters });
      const primary = share.stream ?? remotes[0]?.stream ?? localVideo;