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.
remoteScreenStream
const share = getScreenShareStream({ parameters });const primary = share.stream ?? remotes[0]?.stream ?? localVideo; Copy
const share = getScreenShareStream({ parameters });const primary = share.stream ?? remotes[0]?.stream ?? localVideo;
The active screen share, remote first.
remoteScreenStreamis an array in some SDK paths and a bare object in others; both shapes are handled here so callers do not have to guess.