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

how to get event about participant disconnected and drop the call #22

Open vovanb opened 5 months ago

vovanb commented 5 months ago

I need help to subscribe for participant disconnected event and leave the call right after remote party disconnected i tried to subscribe for event callComposite.RemoveOnRemoteParticipantJoinedEventHandler but nothing happen. Also how to leave group call?

iaulakh commented 5 months ago

HI @vovanb , Re: participant disconnected -> Thank you for bringing this requirement to our attention. We have added the feature to our backlog and will notify you once it's scheduled for development.

Re: how to leave group call? -> Could you please share more information? The UI Library provides a "leave call" button to end the call.

Re: callComposite.RemoveOnRemoteParticipantJoinedEventHandler -> This call is used to remove event subscriptions from AddOnRemoteParticipantJoinedEventHandler.

vovanb commented 3 months ago

@iaulakh any progress with participant disconnected event?

vovanb commented 3 months ago

@iaulakh I need automatically to finish group call when one of participants left so I need event that some of participant disconnected and I need API to exit from call automatically without user interaction in GUI

iaulakh commented 3 months ago

Hi @vovanb,

For one-to-one calls, the call will automatically end when any participant leaves. However, for group calls and team calls, the call will only end when the end call button is pressed.

We have added this feature to our backlog and will notify you once it's scheduled for development.

Please let me know if you need any further information.

Thanks.

vovanb commented 3 months ago

@iaulakh

  1. is it possible to get event that call disconnected in one of participants who pressed button and using ACS API to drop connection https://learn.microsoft.com/en-us/rest/api/communication/callautomation/call-connection/terminate-call?view=rest-communication-callautomation-2023-10-15&tabs=HTTP or another API which will drop group call?
    1. how to use one-to-one calls MAUI? could you please explain how it should work?