Handles the successful streaming of video by managing the local stream, updating parameters, and handling video transport.
Will throw an error if there is an issue with streaming the video.
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, },}); Copy
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, },});
The options for streaming the video.
A promise that resolves when the video streaming setup is complete.
Handles the successful streaming of video by managing the local stream, updating parameters, and handling video transport.
Throws
Will throw an error if there is an issue with streaming the video.
Example