Home / Companies / Daily / Blog / Post Details
Content Deep Dive

Highlight the active speaker on a video call

Blog post from Daily

Post Details
Company
Date Published
Author
Kimberlee Johnson
Word Count
1,699
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

This post walks through how to implement an active speaker spotlight in a custom React app using Daily React Hooks, a ready-to-use embeddable video chat interface. The demo uses the `active-speaker-change` event to update the app state and render the current speaker more prominently than other participants. The `ParticipantsProvider` component listens for this event and updates the app's active speaker state, which is then used to calculate the `currentSpeaker` value. This value is used to display the active speaker in a `SpeakerView` component, while other participants are displayed in a `ParticipantBar` component. The demo also handles screen sharing and edge cases where participants may leave or unmute, using various techniques such as sorting and reversing lists of participants, and debouncing scrolling events.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.