Need help getting equivalent of start/stop speaking events on Android

Hello,

I’m using the Android-sample app from here: https://github.com/OpenVidu/openvidu-tutorials/tree/master/openvidu-android

When testing it with a browser-based implementation, I noticed that whenever a remote participant starts speaking, we get a publisherStartSpeaking event on the browser. However, no such event/message is obtained on the websocket on the Android-app side.

Is there a way to identify this as well as the publisherStopSpeaking events on the Android-app?

Thanks,
Kiran

1 Like

Hi,

Sorry, but speaking events are only available for browser-based platforms. That is because an NPM library is used upon standard Web API MediaStream object to trigger these events, which is not available in native Android.

Regards

Hey @pabloFuente - is it something we can expect in the future? Thanks.

Not in the near future. But take into account that the current openvidu-android has an advantage: as there’s no official OpenVidu Android client library, everything is done using native media Android API. So if there’s a way of achieving what you want in Android, it should be available to be implemented in your app. But the research process is something you will have to do, sorry. Speaking events for the native Android tutorial is not a priority right now.

Regards.

Hey @pabloFuente - Thanks for the response! Would you be able to point me to the actual library you mentioned or it’s source? I’d like to have a look at what/how it does the things & check if I can replicate that on Android side.

Thanks.

Having a look around at the sources on github, I think the library being used for this purposes is: https://github.com/otalk/hark

Just thought of posting it here in case anyone else comes looking for it.

2 Likes