``startVideo`` stuck forever and not throw error on Safari on Ipad Pro 14.5.1

Description

Which Web Video SDK version?
1.10.8
Video SDK Code Snippets

  async startGalleryVideo(cameraId, virtualBackground) {
    if (!cameraId) return;
    console.log(`[VIDEO-SDK JS] startGalleryVideo with camera id: ${cameraId} - virtualBackground: ${virtualBackground}`);
    try {
      let videoOptions = {
        cameraId: cameraId,
        hd: !window.isMobile
      };
      
      if (state.mediaStream.isSupportMultipleVideos() && virtualBackground) {
        videoOptions.virtualBackground = { imageUrl: virtualBackground };
      }
      await state.mediaStream.startVideo(videoOptions);
    } catch (error) {
      console.error(`[VIDEO-SDK JS] startGalleryVideo error: ${JSON.stringify(error)}`);
      throw error;
    }
  }

Stuck at:

      await state.mediaStream.startVideo(videoOptions);

Debug screen:

Device (please complete the following information):

  • Device: Ipad Pro (10.5 Inch)
  • OS: 14.5.1
  • Browser: Safari

Hey @lmtruong1512

Thanks for your feedback.

Sorry for the late reply.

I checked the code above and it seems you want to set a virtual background but misused the condition. It should be stream.isSupportVirtualBackground().

Would you mind sharing the problematic session ID with us for troubleshooting purposes?

Thanks
Vic

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.