AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows
https://pub.dev/packages/agora_rtc_engine
MIT License
746 stars 386 forks source link

Support for multi-channel recording on the client? #294

Closed elileinkram closed 3 years ago

elileinkram commented 3 years ago

Hey, I was just wondering if there was a way to only record the local user's voice, so that we can get a local multi-channel recording?

elileinkram commented 3 years ago

The startAudioRecording method records all the users in the channel...

plutoless commented 3 years ago

you can use raw data api. or cloud recording.

plutoless commented 3 years ago

OH but in flutter it's not that easy to access raw data api.. would cloud recording help?

elileinkram commented 3 years ago

Cloud recording would help, but I haven't seen any tutorials for getting it to work with Flutter. If there is one, then I would love to see it :)

plutoless commented 3 years ago

https://docs.agora.io/en/cloud-recording/landing-page?platform=RESTful check here for docs. it's triggered from your server usually.

elileinkram commented 3 years ago

I am using cloud functions. (Firebase/Firestore)

elileinkram commented 3 years ago

Can I have two people join two different channels. On the one channel person B is only able to listen with person A speaking, and on the second channel person A is only able to listen with person B speaking?

The channels operate at the same time. And any one of these people can record the channels and they will only record the people speaking on the channel (which in this case is limited to one person).

Would this work on a p2p voice call?

plutoless commented 3 years ago

why do you want B to hear A while they are in different channels? Why not just put them in one channel?

elileinkram commented 3 years ago

Because how then could you record each user's own voice on the client?

This solution assumes two things.

a) You can be connected to two different channels at once b) If you record audio in one channel, it will not pick up audio coming from the other channel (even if that audio is coming out of your phone's speaker)

elileinkram commented 3 years ago

Hey, it's fine, I will just use the cloud recorder for now. But there should be a way of each person recording their own audio streams.

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.