Azure-Samples / communication-services-ui-library-maui

UI sample library on how to create .NET MAUI bindings
MIT License
15 stars 6 forks source link

AutoJoin Call #23

Closed vovanb closed 3 months ago

vovanb commented 5 months ago

Could you help how to skip preview dialog and join group call - similar to press join call button click on preview dialog

ShaunaSong commented 5 months ago

Hello @vovanb

To skip the preview dialog and automatically join a group call, you can utilize the skipSetupScreen property of the CommunicationLocalDataOptionProxy class. Set skipSetupScreen to true to bypass the preview dialog and directly join the call.

Here's an example of how to use it:

let localDataOption = CommunicationLocalDataOptionProxy()
localDataOption.skipSetupScreen = true

// Set other properties as needed, such as turning on the microphone and camera
localDataOption.microphoneOn = true
localDataOption.cameraOn = true

// Pass the local data options when joining the call
yourCommunicationManager.joinGroupCall(localDataOption)

By setting skipSetupScreen to true, the user will automatically join the group call without seeing the preview dialog.

Hope this helps! Let me know if you have any further questions.

Thanks Shauna

vovanb commented 5 months ago

@ShaunaSong thanks for example, but where in CommunicationCallingSampleMauiApp i can customize joinGroupCall? for example in ...\CommunicationCallingSampleMauiApp\Platforms\Android\Composite.cs used below callComposite.Launch(MainActivity.Instance, remoteOptions, new CallCompositeLocalOptions(personaData)); So will apreciate if you will provide example relevant to your sample application

vovanb commented 5 months ago

@ShaunaSong any chance to get answer?

iaulakh commented 5 months ago

Hi @vovanb, please look at https://github.com/Azure-Samples/communication-services-ui-library-maui/blob/main/CommunicationCallingSampleMauiApp/JoinCallPage.xaml.cs

_callControlProps.isSkipSetupON = false;
vovanb commented 3 months ago

thanks it is working now with release 1.8