Skip to content

Conversation

@oliverlaz
Copy link
Member

@oliverlaz oliverlaz commented Oct 28, 2025

💡 Overview

Extends the egress-composite app with additional tracing logs for dominant speaker changes.
Also, fixes a "participant sorting" bug that, in some circumstances, caused an incorrect participant to be flagged as the dominant one.
Ref: https://getstream.slack.com/archives/C05KL0HEWLA/p1761659680348299

Ticket: https://linear.app/stream/issue/REACT-630/recording-unexpected-participant-is-flagged-as-dominant-one

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds telemetry tracking to monitor when the dominant speaker changes in the spotlight layout. When a new participant becomes the dominant speaker, the change is logged via the call tracer for monitoring and debugging purposes.

Key Changes:

  • Implements speaker change detection using useRef to track the previous speaker
  • Adds useEffect hook to trace spotlight speaker transitions via activeCall.tracer

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@oliverlaz oliverlaz changed the title chore(recording): trace dominant speaker changes fix(recording): trace dominant speaker changes Oct 31, 2025
@oliverlaz oliverlaz requested a review from Copilot October 31, 2025 13:19
@oliverlaz oliverlaz changed the title fix(recording): trace dominant speaker changes fix(recording): more reliable detection of the dominant speaker Oct 31, 2025
@oliverlaz oliverlaz merged commit c689dc2 into main Oct 31, 2025
23 checks passed
@oliverlaz oliverlaz deleted the trace-spotlight-changes branch October 31, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants