Resolve a participant's live MediaStream from a MediaSFU parameter bag.
This is the SDK-level counterpart of the getParticipantMedia helper that
MediaSFU components publish through sourceParameters. That helper remains
available for backwards compatibility; prefer this export when you drive the
SDK headlessly (returnUI={false}) and only hold the parameter bag.
Resolution order:
parameters.participants matched by id, then by name.
The matched participant's videoID / audioID, looked up against
allVideoStreams / allAudioStreams by producerId. These collections
are keyed by producer id only — a participant's id is its membership id
and never matches, which is why an id-keyed lookup silently returns null.
id treated directly as a producer id, for callers that already hold one.
Resolve a participant's live MediaStream from a MediaSFU parameter bag.
This is the SDK-level counterpart of the
getParticipantMediahelper that MediaSFU components publish throughsourceParameters. That helper remains available for backwards compatibility; prefer this export when you drive the SDK headlessly (returnUI={false}) and only hold the parameter bag.Resolution order:
parameters.participantsmatched byid, then byname.videoID/audioID, looked up againstallVideoStreams/allAudioStreamsbyproducerId. These collections are keyed by producer id only — a participant'sidis its membership id and never matches, which is why an id-keyed lookup silently returns null.idtreated directly as a producer id, for callers that already hold one.