MediaSFU React Native
    Preparing search index...

    Function streamSuccessVideo

    • Handles the successful streaming of video by managing the local stream, updating parameters, and handling video transport.

      Parameters

      Returns Promise<void>

      A promise that resolves when the video streaming setup is complete.

      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,
      },
      });