[bug] iOS: `useiOSBroadcastExtension: false` ignored since 2.4.0, in-app capture unreachable
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start in lib/src/participant/local.dart and trace how the effective ScreenShareCaptureOptions are chosen before the iOS broadcast branch; then read ios/Classes/BroadcastManager.swift to understand the missing-extension guard. Done means useiOSBroadcastExtension: false reaches in-app capture, while a requested broadcast flow without an extension reports an error rather than silently returning success. Check for existing screen-share tests before adding coverage.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Since 2.4.0, setScreenShareEnabled(true) on iOS unconditionally routes into the Broadcast Upload Extension flow. ScreenShareCaptureOptions.useiOSBroadcastExtension still exists, but false (the documented in-app RPScreenRecorder mode through 2.3.6) has no effect.
lib/src/participant/local.dart (2.4.0–2.10.0 and current main):
if (lkPlatformIs(PlatformType.iOS) && !BroadcastManager().isBroadcasting) {
// Wait until broadcasting to publish track
await BroadcastManager().requestActivation();
return null;
}
The branch precedes any capture options inspection; the in-app path below it is unreachable.
Worse, without an extension: requestActivation()'s native side (ios/Classes/BroadcastManager.swift) guard-returns when the RTCScreenSharingExtension Info.plist key is absent:
func requestActivation() {
guard let bundleIdentifier = BroadcastBundleInfo.screenSharingExtension else { return }
Task { await Self.showPicker(for: bundleIdentifier) }
}
No picker, no consent UI, no error, and no log so the call resolves null as success.
This appears to be an unintended side effect of #705 ("fix: Properly handle broadcast capture state"): the PR documents its async-return breaking change but never mentions useiOSBroadcastExtension or the in-app path. That capturer still works in flutter_webrtc, reachable via LocalVideoTrack.createScreenShareTrack() + publishVideoTrack() which is our current workaround.
Broadcast extension capture is always whole screen; in-app capture is scoped to the app's own UI. For privacy sensitive products (share this app with a support agent, never the user's other apps or notifications), app scoped capture is impossible through the public screenshare API on every released version.
To Reproduce
- Flutter app on a physical iPhone,
livekit_client≥ 2.4.0, no Broadcast Upload Extension target. - Connect to a room, then:
await room.localParticipant!.setScreenShareEnabled( true, screenShareCaptureOptions: const ScreenShareCaptureOptions(useiOSBroadcastExtension: false), ); - The call resolves (
null); no consent UI, no published track, nothing logged. Remote participants receive nothing. - On 2.3.6 the same code shows the ReplayKit consent alert and publishes an in-app screenshare track.
Expected behavior
useiOSBroadcastExtension: false(explicit or viaRoomOptions.defaultScreenShareCaptureOptions) uses the in-app capturer, as through 2.3.6 . The gate should consult the effective capture options before routing toBroadcastManager.- Independently: when the broadcast flow is requested but
RTCScreenSharingExtensionis missing, fail loudly (throw or error event) instead of a silentnull. Currently misconfiguration looks like success.
Platform information
- Flutter version: 3.44.2
- Plugin version: reproduced on 2.7.0 and 2.10.0 ; unchanged on
main, 2026-08-04 - Flutter target OS: iOS (real device, iPhone 17)
- Flutter target OS version: iOS 26.4
- Flutter console log: n/a, failure produces no output
- Ngôn ngữ chính
- Dart
- Star
- 421
- Fork
- 260
- Merge trung bình
- 2 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của livekit/client-sdk-flutter
-
`jwtPayload.video` returns null grants for tokens from LiveKit server SDKsCó thể đã có người làm @RaphaelFakhri đã nhận 4 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
livekit/client-sdk-flutter#1236 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
livekit/client-sdk-flutter#1227 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Inbound data packets never delivered while media flows normally (2.13.0, LiveKit Cloud 1.13.7)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
livekit/client-sdk-flutter#1221 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
livekit/client-sdk-flutter#1219 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS: `audioDeviceModule` becomes permanently `nil`/unavailable after backgrounding, even though `AVAudioSession` is never interruptedCó thể đã có người làm @hiroshihorie đã nhận 30 ngày trước. Đang mở
livekit/client-sdk-flutter#1206 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của livekit/client-sdk-flutter
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: The daily reminder keeps its old language after the app language changesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbacklog:low bug localization
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
simonoppowa/OpenNutriTracker#1366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Mobile reading view shows a sender without display name as "<[email protected]>" with angle bracketsĐang mởai-driven-qa bug Cosmetic
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
linagora/tmail-flutter#4999 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
waiting for response
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 72/100
flutter/flutter#194381 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
newrelic/newrelic-flutter-agent#243 · 3 bình luận ·