Azure-Samples / communication-services-ios-quickstarts

Sample code for Azure Communication Services iOS quickstarts
MIT License
12 stars 24 forks source link

Sample for Xamarin + Azure Communication Services usage #18

Open mcblacksea opened 2 years ago

mcblacksea commented 2 years ago

Is it possible to provide sample for Azure Communication Services on Xamarin / Xamarin.Forms on C#?

Thanks!

ddematheu2 commented 2 years ago

We currently don't have a sample for that. Will capture as feedback and share with team.

andersonvieiragomeslopes commented 2 years ago

@aodegov If you're still interested, I'm about to release a sample with lots of features to use with azure calling in C# thanks to a user who did a great job porting this to xamarin. Check here

mcblacksea commented 2 years ago

Sure, @andersonvieiragomeslopes,
thanks a lot for tagging me and thank you for your sample. And of course many thanks to @tompi . Great job! I already played with this ported to Xamarin library. In general looks good in terms of voice / video calling for Xamarin. Now I'm looking for accurate video / audio ACS calls recording solution for Xamarin. Should be next step after the audio / video calls.

andersonvieiragomeslopes commented 2 years ago

Hello @aodegov .

Great!

And yes, @tompi did an excellent job.

Are you looking for ACS call recording? If yes, I'm working on it, I should release a sample against the tompi repository after PR approval, but this works server-side as far as I could see. By the date you opened the ticket, we now have more features available, transcription and other

tompi commented 2 years ago

Hey @aodegov . @andersonvieiragomeslopes is right, you need the server side sdk to initiate recording(acs will do a callback to your server when recording is ready for download).

however, to start recording, you need the server call id, and to Get this you can use the android/iOS sdk. We have it working for one our apps, here Are some things that tripped me up initially:

  1. you can’t get the server call id until connection state changes to connected. At first I tried getting it after call was established, and it worked some of the time… just do on the connectionstatechanged, when connected.

  2. I can’t remember if the getservercall is in the beta or official now, and can’t check since I’m on vacation, but if it is in beta, you need to use the beta version, even though there might be a higher version released. So version 2.1-beta might contain methods that are still lacking from 2.2 (this might just be me having false expectations for the versioning)

  3. the resulting recording is always landscape, Even though your phone might be in portrait(resulting in cropped recording). I filed a bug for this, can dig it up if you want to +1:)

Good luck!

mcblacksea commented 2 years ago

Thanks for your reply and help @tompi. And nice to meet you 😊. Nowadays, I'm creating my project with usage ACS calling functionality (audio/ video). And I'll get to the recording functionality at September/ October. Will keep you posted how it goes. And please if you have any changes for this functionality, feel free to ping me. Many thanks.