Hi,
I’m stream few streams that related to each other and I would like to know in which one of them someone is currently speaking.
For that purpose I want to monitor the audio volume any few seconds in each one of the streams.
I thought to use IMediaStreamLivePacketNotify.onLivePacket this way:
public void onLivePacket(IMediaStream mediaStream, AMFPacket packet) {
if (FLVUtils.isOnMetadataPacket(packet)) {
OnMetadataBasic metadata = FLVUtils.getOnMetadataData(packet);
getLogger().info("onLivePacket: Stream [" + mediaStream.getName() + "] volume: " + metadata.audioinputvolume);
}
}
But FLVUtils.isOnMetadataPacket never returns true.
Any other idea how to implement it?