feat: Expose subtitle state change event - #177
Conversation
Balamurugan-100
commented
Sep 10, 2026
- Hosts could not observe when subtitles were enabled, disabled, or switched to another language, making it difficult to persist the user's subtitle preference.
- Subtitle state changes were handled internally without notifying the host app.
- Expose subtitle state changes to host apps, report only real changes, and keep existing integrations backward compatible.
* Hosts could not observe when subtitles were enabled, disabled, or switched to another language, making it difficult to persist the user's subtitle preference. * Subtitle state changes were handled internally without notifying the host app. * Expose subtitle state changes to host apps, report only real changes, and keep existing integrations backward compatible.
|
Claude finished @Balamurugan-100's task in 2m 13s —— View job Claude finished reviewing this PRTodo list
SummaryThis PR adds a Findings1. UIKit: auto-selected subtitles never fire the delegate (architectural gap) In But
Neither path calls Compare this with the SwiftUI implementation ( A more robust fix would move the notification into 2. SwiftUI: unclear intent behind the
.onChange(of: activeSubtitleTrack) { track in
guard hasAppeared || track != nil else { return }
onSubtitleStateChanged?(track != nil, track?.language)
}
.onAppear { hasAppeared = true }
3. Minor: SwiftUI API shape
Other checks
|
|
@claude review and provide a verdict |
|
Claude finished @Balamurugan-100's task in 1m 15s —— View job Review verdict: ✅ ApproveTodo list
SummaryThis PR adds a What changed since the last review
Both platforms now behave consistently for the Remaining (non-blocking) observation
Other checks
Verdict: Approve. Both previously identified issues are resolved and the implementation is now consistent across UIKit and SwiftUI. |