Agora-Flutter-SDK icon indicating copy to clipboard operation
Agora-Flutter-SDK copied to clipboard

videoSizeChanged and localVideoStats not firing in Agora web

Open mrtordoide opened this issue 2 years ago • 3 comments

Describe the bug setEventHandler methods localVideoStats and videoSizeChanged does not work for Flutter web in dev/flutter2

To Reproduce Steps to reproduce the behavior:

  1. 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}");
}
  1. 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

mrtordoide avatar Aug 16 '21 01:08 mrtordoide

some events not support for web. you can get more info from the web submodule.

LichKing-2234 avatar Aug 16 '21 02:08 LichKing-2234

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?

mrtordoide avatar Aug 16 '21 02:08 mrtordoide

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.

rgb1380 avatar Sep 09 '21 13:09 rgb1380