Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose speakerStats via API #15420

Open
moukmessie opened this issue Dec 23, 2024 · 1 comment
Open

Expose speakerStats via API #15420

moukmessie opened this issue Dec 23, 2024 · 1 comment
Labels
feature-request Issue which suggest an idea, enhancement or feature to implement

Comments

@moukmessie
Copy link

What problem are you trying to solve?

Currently, it is not possible to access detailed speaker statistics (speakerStats) such as total speech time or dominant speaker count through the iframeAPI. This limits the ability to analyze participant behaviors, generate reports, or integrate with external analytics systems. For deployments requiring these insights, there is no straightforward way to retrieve this data.

What solution would you like to see?

No response

Is there an alternative?

No response

@moukmessie moukmessie added the feature-request Issue which suggest an idea, enhancement or feature to implement label Dec 23, 2024
@shawnchin
Copy link
Contributor

shawnchin commented Dec 23, 2024

This limits the ability to analyze participant behaviors, generate reports, or integrate with external analytics systems. For deployments requiring these insights, there is no straightforward way to retrieve this data.

For analytics and reporting, you may not want to do this on the client side iframe.

To handle this on the backend, you would write a custom prosody module that will have access to speakerstat data.

Alternative, you could use event_sync which sends room/occupant events to an external API. When configured with include_speaker_stats = true, it will include total_dominant_speaker_time from speaker stats in the event payload when occupants leave. It should be reasonably straight forward to modify the module to include the full speaker stats data on room events.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Issue which suggest an idea, enhancement or feature to implement
Projects
None yet
Development

No branches or pull requests

2 participants