Service to handle host responses to participant requests, including updating states and showing relevant alerts.
Name
HostRequestResponse
Description
Manages host responses to requests (e.g., microphone, video, screenshare, chat) by updating the state of actions and triggering alerts based on acceptance or rejection.
Method
hostRequestResponse
Async
Param: options
Options for handling the host request response:
requestResponse {RequestResponse}: The request response object.
showAlert {Function}: Optional alert function for notifications.
requestList {Request[]}: The current list of requests.
updateRequestList {Function}: Updates the request list.
updateMicAction, updateVideoAction, updateScreenAction, updateChatAction {Function}: Update functions for respective actions.
updateAudioRequestState, updateVideoRequestState, updateScreenRequestState, updateChatRequestState {Function}: Updates request states.
updateAudioRequestTime, updateVideoRequestTime, updateScreenRequestTime, updateChatRequestTime {Function}: Update functions for request timers.
updateRequestIntervalSeconds {number}: Interval in seconds to update request time.
Returns
Resolves once the request response has been handled.
Service to handle host responses to participant requests, including updating states and showing relevant alerts.
Name
HostRequestResponse
Description
Manages host responses to requests (e.g., microphone, video, screenshare, chat) by updating the state of actions and triggering alerts based on acceptance or rejection.
Method
hostRequestResponse
Async
Param: options
Options for handling the host request response:
requestResponse
{RequestResponse}: The request response object.showAlert
{Function}: Optional alert function for notifications.requestList
{Request[]}: The current list of requests.updateRequestList
{Function}: Updates the request list.updateMicAction
,updateVideoAction
,updateScreenAction
,updateChatAction
{Function}: Update functions for respective actions.updateAudioRequestState
,updateVideoRequestState
,updateScreenRequestState
,updateChatRequestState
{Function}: Updates request states.updateAudioRequestTime
,updateVideoRequestTime
,updateScreenRequestTime
,updateChatRequestTime
{Function}: Update functions for request timers.updateRequestIntervalSeconds
{number}: Interval in seconds to update request time.Returns
Resolves once the request response has been handled.
Example