【问题标题】:Unable to receive uid from Agora.io event OnActiveSpeakerHandler on Unity无法从 Unity 上的 Agora.io 事件 OnActiveSpeakerHandler 接收 uid
【发布时间】:2020-06-12 06:15:18
【问题描述】:

using agora_gaming_rtc;

在开始时我打电话 mRtcEngine.EnableAudioVolumeIndication(500, 10);

然后我用它来接收事件 (private void OnActiveSpeakerHandler(uint uid))

private void OnActiveSpeakerHandler(uint uid){
    uidTalking = (int)uid;
    Debug.Log("Is talking: " + uid);
}

但它不会随时启动。

我尝试了其他事件,但它们也不起作用。

【问题讨论】:

    标签: agora.io


    【解决方案1】:

    您是否将回调函数注册到委托?

    mRtcEngine.OnActiveSpeakerHandler += OnActiveSpeakerHandler;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-02
      • 1970-01-01
      • 2017-08-26
      • 1970-01-01
      • 2015-12-23
      相关资源
      最近更新 更多