Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
The render mode of AgoraVideoView is not supported on the web
Version of the agora_rtc_engine
6.3.1
Platforms affected
- [ ] Android
- [ ] iOS
- [ ] macOS
- [ ] Windows
- [X] Web
Steps to reproduce
1- copy paste the default example from the repo 2- connect another user to the call 3- notice the difference in the video zoom shown locally and for the user who just connected
Expected results
The video should show normally without being zoomed in. With black marks where the aspect ratio doesn't fit if we the fit render type
Actual results
Video is zoomed in no matter the render type used
Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
18:53:20:694 Agora-SDK [DEBUG]: [track-cam-ba779fbd] current video dimensions: 640 480
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.6, on Ubuntu 23.10 6.5.7-060507-generic,
locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.89.0)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
The render mode of AgoraVideoView
is not yet supported on the web.
Understood. So there is no way to fix the zoomed image as of now?
Maybe you can wrap a FittedBox
widget to it, but you need to know the video width/height first.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
Really sorry for the late reply.
Fitted box doesn't unfortunately fix the issue, it's an improvement aesthetically but the renderer doesn't seem to take into account it's surrounded by it. So it keeps the zoomed in aspect. Thank you for the suggestion though.