We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tried flutter run -d web-server --web-port 3344 --release --web-renderer canvaskit --dart-define=BROWSER_IMAGE_DECODING_ENABLED=false
flutter run -d web-server --web-port 3344 --release --web-renderer canvaskit --dart-define=BROWSER_IMAGE_DECODING_ENABLED=false
Code
ScreenshotController screenshotController = ScreenshotController(); Widget screenshotWidget() { return Screenshot( controller: screenshotController, child: RTCVideoView( ref.read(widget.rtc), objectFit: RTCVideoViewObjectFit.RTCVideoViewObjectFitContain, mirror: true, filterQuality: FilterQuality.high, ), ); } Future<void> captureImage() async { Uint8List? tempImage = await screenshotController.capture().onError((error, stackTrace) { debugPrint('error $error'); return null; }); }
NOTE: Working on MacOs, Windows, iOS and Android
The text was updated successfully, but these errors were encountered:
I found that on Web, you have to call Uint8List? tempImage = await screenshotController.capture() with a Duration = 0:
Uint8List? tempImage = await screenshotController.capture()
Uint8List? tempImage = await screenshotController.capture( delay: const Duration(milliseconds: 0) );
Sorry, something went wrong.
No branches or pull requests
Issue
Tried
flutter run -d web-server --web-port 3344 --release --web-renderer canvaskit --dart-define=BROWSER_IMAGE_DECODING_ENABLED=false
Code
NOTE: Working on MacOs, Windows, iOS and Android
The text was updated successfully, but these errors were encountered: