Most active talker in Conference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Yuri,

Thanks for your inputs, but pjmedia_conf_get_signal_level works is a 
polling model API. I would like to have a feature where application can 
register a callback, and whenever there is a change in active talker, 
the callback is called and application would be notified about the most 
active port/stream. In case no one is talking then port 0, would be 
transmitted as most active talker.

Regards
Manmeet

On 02/22/2013 08:06 PM, Yuri Saltykov wrote:
> Hello.
> On Fri, Feb 22, 2013 at 04:53:15PM +0530, Manmeet Singh wrote:
>> Hello All,
>>
>> I need help to add feature where PJSip can communicate the most active
>> talker in the conference to the application. Is there any known way
>> (existing API or code) anyone can help me with?
> You can periodicaly call pjmedia_conf_get_signal_level(), for example:
>
>   pjmedia_conf_get_signal_level(call->conf,
> call->conf_slot, &tx_level, &rx_level);
>
> call->audio_level = ((rx_level * 2) + call->audio_level) / 3;
>
> where:
> call->conf - conference
> call->conf_slot - conference member slot
> call->audio_level - will hold average audio level for this call.
>
>   
>> If there is none, I am thinking of creating a conf registration function
>> which can register a callback and the callback would get all these
>> details when the conference is running. Please suggest if this is the
>> right way of achieving the Most Active Talker feature.
>>
>> Regards
>> Manmeet
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux