Service to manage screen producer ID and screen sharing status for participants.
Name
ScreenProducerId
Description
This service processes and updates the screen producer ID, manages screen sharing states, and defers screen updates as needed based on participant data.
Method
screenProducerId
Param: options
Options for handling screen producer ID:
producerId {string}: The ID of the screen producer.
screenId {string}: The current screen ID.
membersReceived {boolean}: Indicates if members data has been received.
shareScreenStarted {boolean}: Indicates if screen sharing has started.
deferScreenReceived {boolean}: Indicates if screen sharing should be deferred.
participants {Participant[]}: The list of current participants.
updateScreenId {Function}: Function to update the screen ID.
updateShareScreenStarted {Function}: Function to update the screen sharing status.
updateDeferScreenReceived {Function}: Function to update the deferred screen status.
Returns
Updates states directly through provided functions.
Service to manage screen producer ID and screen sharing status for participants.
Name
ScreenProducerId
Description
This service processes and updates the screen producer ID, manages screen sharing states, and defers screen updates as needed based on participant data.
Method
screenProducerId
Param: options
Options for handling screen producer ID:
producerId
{string}: The ID of the screen producer.screenId
{string}: The current screen ID.membersReceived
{boolean}: Indicates if members data has been received.shareScreenStarted
{boolean}: Indicates if screen sharing has started.deferScreenReceived
{boolean}: Indicates if screen sharing should be deferred.participants
{Participant[]}: The list of current participants.updateScreenId
{Function}: Function to update the screen ID.updateShareScreenStarted
{Function}: Function to update the screen sharing status.updateDeferScreenReceived
{Function}: Function to update the deferred screen status.Returns
Updates states directly through provided functions.
Example