voxeet / comms-sdk-cpp

The Dolby.io Communications C++ SDK provides both Client and Server applications the ability to create HD voice and video for fully immersive real-time communications and streaming experiences.
https://docs.dolby.io/communications-apis/docs/scpp-overview
Other
13 stars 2 forks source link

add event for audio_level #2

Closed jchang0419 closed 1 year ago

jchang0419 commented 1 year ago

managing audio_level to create a vumeter requires you to create a thread and constantly poll volume level apis https://api-references.dolby.io/comms-sdk-cpp/api/sdk/conference.html?highlight=level#_CPPv4N7dolbyio5comms8services10conference20get_all_audio_levelsEv https://api-references.dolby.io/comms-sdk-cpp/api/sdk/conference.html?highlight=level#_CPPv4N7dolbyio5comms8services10conference15get_audio_levelERKNSt6stringE

it would be better to have a configurable event so the sdk can manage this for me. for example: set the event interval get_all_audio_levels(int interval) register callback virtual async_result<event_handler_id> add_event_handler(event_handler<dolbyio::comms::audio_level> &&callback)=0

djova-dolby commented 1 year ago

This will be released with 2.3.0-beta.1.

djova-dolby commented 1 year ago

https://api-references.dolby.io/comms-sdk-cpp/api/sdk/conference.html#_CPPv4N7dolbyio5comms8services10conference17add_event_handlerERR13event_handlerI12audio_levelsE