voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

Video isn't showing to each other #140

Open ddevilcore opened 2 years ago

ddevilcore commented 2 years ago

We're implemented react-native-voximplant for React Native & voximplant-websdk for web and now testing this Stuck on issue when we're doing audio call and then switch it to video call

Check-list

  1. Is caller sees his camera? - Yes
  2. Is receiver sees his camera? - Yes
  3. Is they're sees each other? - No

Notes

Versions Web > voximplant-websdk: "^4.4.2-2039" Mobile React Native > react-native-voximplant@1.27.1

YuliaGrigorieva commented 2 years ago

Hello @ddevilcore ,

Could you please check the values of VideoFlags.receiveVideo and VideoFlags.sendVideo that you pass to Client.call API?

If you need to enable video during an audio call, I recommend to set VideoFlags.receiveVideo = true. This way when you enable video on the remote side, the video should be received on the client and you should get EndpointEvents.remoteVideoStreamAdded event.

Please let me know if it helps.

Best regards, Yulia Grigorieva

ddevilcore commented 2 years ago

Hello @ddevilcore ,

Could you please check the values of VideoFlags.receiveVideo and VideoFlags.sendVideo that you pass to Client.call API?

If you need to enable video during an audio call, I recommend to set VideoFlags.receiveVideo = true. This way when you enable video on the remote side, the video should be received on the client and you should get EndpointEvents.remoteVideoStreamAdded event.

Please let me know if it helps.

Best regards, Yulia Grigorieva

Thank you for answer

 // VoxComponent.tsx
      const callSettings = {
      setupCallKit: Platform.OS === 'ios',
      video: {
        sendVideo: this.props.isUseVideo,
        receiveVideo: this.props.isUseVideo,
      },

   // VoximplantManager.ts
    async call(callTo: string, callSettings: CallSettings) {
    const call = await this._voxImplantInstance.call(callTo, callSettings)
    console.log('Create call', call)
    return call
    }

So

We're implemented it in our method of VoxComponent & Voximplant manager, console logs shows that EndpointEvents.remoteVideoStreamAdded event is called when call is running