Skip to content

Conversation

pavelprystinka
Copy link
Member

Purpose

  • Introduces CallCompositeCaptionsReceivedEvent and related event handler registration methods to CallComposite. Updates dependency injection and CaptionsRttDataManager to trigger the event when captions are finalized. Demo app now displays a toast when captions are received.

Does this introduce a breaking change?

  • Yes
  • No

Pull Request Type

What kind of change does this Pull Request introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Documentation content changes
  • Other... Please describe:

Pull Request Checklist

  • Public API changes
  • Verified for cross-platform
  • Synced with iOS, Web team
  • Internal review completed
  • UI Changes
    • Screen captures included
    • Tested for Light/Dark mode
    • Tested for screen rotation
    • Tested on Tablet and small screen device (5")
    • Include localization changes
  • Tests
    • Memory leak analysis performed
    • Tested on API 21, 26 and latest
    • Tested for background mode
    • Unit Tests Included
    • UI Automated Tests Included

How to Test

  • Open...
  • Click on...

What to Check

Verify that the following are valid

  • ...

Other Information

Introduces CallCompositeCaptionsReceivedEvent and related event handler registration methods to CallComposite. Updates dependency injection and CaptionsRttDataManager to trigger the event when captions are finalized. Demo app now displays a toast when captions are received.
@pavelprystinka pavelprystinka requested review from a team as code owners July 29, 2025 20:08
@pavelprystinka pavelprystinka changed the base branch from main to develop July 29, 2025 20:13
@ahammer
Copy link
Member

ahammer commented Jul 29, 2025

Can we add ufm gating to the feature while it's in develop, prior to ARB/Release?

@pavelprystinka pavelprystinka requested a review from Copilot August 13, 2025 05:12
Copy link

@Copilot 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 introduces a new captions received event feature to the CallComposite, allowing developers to register event handlers that are triggered when captions are finalized during a call. The implementation follows the existing event pattern established in the CallComposite.

Key changes:

  • Adds CallCompositeCaptionsReceivedEvent with speaker information and caption text
  • Implements event handler registration/removal methods in CallComposite
  • Updates CaptionsRttDataManager to trigger events when captions are finalized
  • Demonstrates usage in the demo app with toast notifications

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
CallCompositeCaptionsReceivedEvent.java New event class containing caption data (speaker name, raw ID, text, language)
CallComposite.java Adds public API methods for registering/removing captions received event handlers
CallCompositeEventsHandler.kt Implements handler storage and management for captions received events
CaptionsRttDataManager.kt Triggers caption events when captions are finalized, updated constructor for configuration
CallCompositeExtensions.kt Helper function to create caption received events
DependencyInjectionContainerImpl.kt Updates dependency injection to pass configuration to CaptionsRttDataManager
CallCompositeManager.kt Demo implementation showing toast notifications for received captions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

* // Process captions received event
* System.out.println(event.getSpeakerName());
* System.out.println(event.getCaptionText());
* System.out.println(event.getIsFinal());
Copy link
Preview

Copilot AI Aug 13, 2025

Choose a reason for hiding this comment

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

The documentation references a method getIsFinal() that doesn't exist in the CallCompositeCaptionsReceivedEvent class. This should be removed or the method should be added to the event class.

Suggested change
* System.out.println(event.getIsFinal());

Copilot uses AI. Check for mistakes.

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.

2 participants