voxeet / voxeet-uxkit-reactnative

https://www.npmjs.com/package/@voxeet/react-native-voxeet-conferencekit
MIT License
11 stars 12 forks source link

Video conference by default #26

Closed tuneerclixlogix closed 3 years ago

tuneerclixlogix commented 3 years ago

Question: Can we start the conference with the video On by default and the other user will also be notified that its an audio or video conference ?

FabienLavocat commented 3 years ago

Yes, you can start the conference with video on by default:

const constraints = {
  audio: true,
  video: true,
};

let createConference = await VoxeetSDK.create({ params: { dolbyVoice: true } });
await VoxeetSDK.join(createConference.conferenceId, { constraints: constraints });

Unfortunately, there is no way to let the other participant know the audio & video are on with the UXKit.

tuneerclixlogix commented 3 years ago

@FabienLavocat I tried with const constraints = { audio: true, video: true, }; but still I have to manually switch to video mode

FabienLavocat commented 3 years ago

@tuneerclixlogix on both iOS and Android?

codlab commented 3 years ago

It's currently the expected behavior, those options are not implemented. (for reference : https://github.com/voxeet/voxeet-uxkit-reactnative/blob/master/lib/types/JoinConference.ts)

To activate the video, it's either possible using the VoxeetSDK.defaultVideo(enable: boolean) or using the new beta version (or direct integration of the new branch in the project)

tuneerclixlogix commented 3 years ago

Yes @FabienLavocat On both Android and iOS

tuneerclixlogix commented 3 years ago

@codlab With beta 0.2.6 ? https://github.com/voxeet/voxeet-uxkit-reactnative/tree/beta/0.2.6 Or i just call the VoxeetSDK.defaultVideo(true); ?

codlab commented 3 years ago

the startVideo() and stopVideo() are available in the (and upward) 0.2.11-beta9

the defaultVideo(true/false) is already available in previous versions

tuneerclixlogix commented 3 years ago

Thanks @codlab , I will try this and will update

tuneerclixlogix commented 3 years ago

Thanks @codlab It's working perfect.