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
How to take screenshot in flutter? #69
Comments
how did you do the screenshot? could you pls share your code? |
replace this below code with flutter main.dart sample |
I add the code of screenshot only, and I see it worked, pls check your code. |
@LichKing-2234 i had tried your code but still the black screen issue occurs |
is state changed, cause |
@LichKing-2234 nope join channel method called on the page initialize.So changing the page state does not call join channel twice. Are you facing this issue? |
by the way, your device is Android or iOS? |
Android |
I think I misunderstood you. The picture in this album is black, but the app works fine? |
yep, the plugin is working fine. But I can't able to take a screenshot due to the black screen issue. |
because we use |
@LichKing-2234 absolutely correct, Is there is any alternatives for this issue? |
your can try |
which code? |
Android code like this |
I will close this issue because it is too old. if there are still problems, you can reopen this issue. |
@LichKing-2234 Can you please provide an example of how to achieve that in Flutter? My guess is that I need https://docs.agora.io/en/Video/custom_video_android?platform=Android |
I see on https://github.com/AgoraIO/Flutter-SDK/tree/master/android/src/main/java/io/agora/agorartcengine , it only supports SurfaceView for Flutter. Any chance to add TextureView? |
You should add it into the java code |
We have planed to add TextureView. |
@LichKing-2234 Is the issue fixed? Please provide some workaround to fix these issues, Screenshot is mandatory in the video call app. |
Hi, for anyone who's still facing this issue : I was able to take the screenshot of my stream using this package https://pub.dev/packages/native_screenshot You can simply run this function to take the screenshot of your stream:
You can find the complete code here: https://github.com/Meherdeep/agora-videocall-demo |
Is it working on iOS? |
During video call when I'm trying to take screenshot programmatically in flutter. Only a black screen appears. Please provide a solution to take a screenshot.
The text was updated successfully, but these errors were encountered: