The options for streaming the video.
A promise that resolves when the video streaming setup is complete.
await streamSuccessVideo({
stream: mediaStream,
parameters: {
socket,
participants,
localStream: null,
localStreamVideo: null,
transportCreated: false,
transportCreatedVideo: false,
videoAlreadyOn: false,
videoAction: false,
videoParams: producerOptions,
defVideoID: "default-video-id",
userDefaultVideoInputDevice: "user-device-id",
hostLabel: "Host",
islevel: "1",
member: "Participant1",
lock_screen: false,
shared: false,
shareScreenStarted: false,
vParams,
hParams,
allowed: true,
currentFacingMode: "user",
device: mediaDevice,
updateTransportCreatedVideo,
updateVideoAlreadyOn,
updateVideoAction,
updateLocalStream,
updateLocalStreamVideo,
updateUserDefaultVideoInputDevice,
updateCurrentFacingMode,
updateDefVideoID,
updateAllowed,
updateUpdateMainWindow,
createSendTransport,
connectSendTransportVideo,
showAlert,
},
});
Handles the successful streaming of video by managing the local stream, updating parameters, and handling video transport.