-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Screen Sharing on Flutter iOS with video call #1882
Comments
@yeahren @maxxfrazer @littleGnAl @LichKing-2234 @devsideal @roip890 |
It is most likely you referred to an outdated doc which caused the crash.
For this error, you also need to copy the |
You've shared Objective-C code file link. SO I asked ChatGPT to convert the Objective-C code into Swift, I received the following Swift code:
After adding this code to my AppDelegate.swift, I encountered the error "No such module 'Flutter'" and I'm unable to build the project. I have also tried the following code
|
Have you imported the
|
yes |
Did you run it in the command line? |
yes I also tried to run it from command line and and from xcode on real device |
Can you provide a reproducible demo so we can see what went wrong? |
RPReplay_Final1720504709.1.1.1.mp4I've solved that error but by adding following code in my appdelegate.swift
` but I am facing the new error I am not getting my app in screen sharing popup how can I do that. I've attached the video for reference. |
I think you may need to refer to the doc to set up the project first |
Can you provide a reproducible demo so we can see what went wrong? |
Hi, I can see the name of my app in the popup, but when I tap on "Start Recording," nothing happens. I am sharing the method channel code that I wrote in the AppDelegate.swift file. Please let me know what am I doing wrong here. `var screensharingIOSChannel = FlutterMethodChannel(
|
The issue should not related to these codes, if the popup is shown, that means these codes work fine. I'm not sure which step went wrong in your configuration. Again, can you provide a reproducible demo so we can investigate more? |
I have attached a video that demonstrates the actual problem. Additionally, I have included my AppDelegate file, where I have written a method channel. I have also included a screenshot of a SampleHandler file from a newly created broadcast extension. The line await _showRPSystemBroadcastPickerViewIfNeed(); is getting executed, but the code written after that line is not executing. AppDelegate.swift: import UserNotifications @UIApplicationMain
}
// // 1
} } SampleHandler.swift class SampleHandler: RPBroadcastSampleHandler {
} WhatsApp.Video.2024-07-24.at.5.04.21.PM.mp4 |
Version of the agora_rtc_engine
6.3.2
Platforms affected
Steps to reproduce
Expected results
The app should not crash and screen sharing should work as intended.
Actual results
Actual Behavior:
The app crashes on the splash screen after implementing the changes.
I am facing an issue with screen sharing in Flutter specifically on iOS in video call. The feature works as expected on Android.
Initially, I encountered a MissingPluginException with the following message but the video call was working as expected:
MissingPluginException(No implementation found for method show RPSystemBroadcastPickerView on channel example_screensharing_ios)
I followed the steps provided in the Agora documentation for screen sharing. (https://docs.agora.io/en/3.x/video-calling/basic-features/screensharing?platform=flutter)
However, after implementing these changes, my app crashes on the splash screen.
Additional Information:
Environment:
Flutter version: 3.16.1
iOS version: 17.1.1
Agora SDK version: 6.3.2
Please provide guidance on resolving this issue. Thank you.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
7706E30A-BE98-476D-A458-9D54E440C42E.MP4
Logs
Logs
[Paste your logs here]
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: