Agora-Flutter-SDK
Agora-Flutter-SDK copied to clipboard
videoSizeChanged and localVideoStats not firing in Agora web
Describe the bug
setEventHandler
methods localVideoStats
and videoSizeChanged
does not work for Flutter web in dev/flutter2
To Reproduce Steps to reproduce the behavior:
- Set event handlers like below:
videoSizeChanged: (uid, width, height, rotation) {
print("uid: $uid, width: $width, height: $height, rotation: $rotation");
}, localVideoStats: (stats) {
print("local width: ${stats.encodedFrameHeight}, local height: ${stats.encodedFrameHeight}");
}
- On running, there is no output related to these events.
Expected behavior Expected to print the respective video info in console.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: macOS
- Browser: Chrome
- Version: latest
some events not support for web. you can get more info from the web submodule.
oh ok. so is it currently not supported in web in general or just flutter web? will there be any support for this in future?
I have the same issue and use both types of events. These events are important in the logic of positioning and tiling the views and monitoring the performance of up/downlink.