Attach speaking state update
This commit is contained in:
@@ -95,9 +95,6 @@ impl EventHandler for Receiver {
|
|||||||
// An event which fires for every received rtcp packet,
|
// An event which fires for every received rtcp packet,
|
||||||
// containing the call statistics and reporting information.
|
// containing the call statistics and reporting information.
|
||||||
// println!("RTCP packet received: {:?}", data.packet);
|
// println!("RTCP packet received: {:?}", data.packet);
|
||||||
},
|
|
||||||
Ctx::Client() => {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
Ctx::ClientDisconnect(
|
Ctx::ClientDisconnect(
|
||||||
ClientDisconnect {user_id, ..}
|
ClientDisconnect {user_id, ..}
|
||||||
@@ -140,6 +137,11 @@ pub async fn join(ctx: Context, guild: Guild, cid: ChannelId) -> Option<Arc<Mute
|
|||||||
{
|
{
|
||||||
let mut call = call.lock().await;
|
let mut call = call.lock().await;
|
||||||
|
|
||||||
|
call.add_global_event(
|
||||||
|
CoreEvent::SpeakingStateUpdate.into(),
|
||||||
|
Receiver::new(call_handle.clone()),
|
||||||
|
);
|
||||||
|
|
||||||
call.add_global_event(
|
call.add_global_event(
|
||||||
CoreEvent::SpeakingUpdate.into(),
|
CoreEvent::SpeakingUpdate.into(),
|
||||||
Receiver::new(call_handle.clone()),
|
Receiver::new(call_handle.clone()),
|
||||||
|
|||||||
Reference in New Issue
Block a user