AgoraIO-Extensions / Agora-Flutter-SDK

Flutter plugin of Agora RTC SDK for Android/iOS/macOS/Windows

Home Page:https://pub.dev/packages/agora_rtc_engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Flutter][Android] Local snapshot taken using takeSnapshot API is cached

locandpad opened this issue · comments

Describe the bug
When taking snapshot continuously, the newly taken image is cached and the API returns the same image as previous one.

To Reproduce
Steps to reproduce the behavior:

  1. Use the TakeSnapshot example from this repo.
  2. Join a channel.
  3. Take snapshot of picture A --> API returns correctly.
  4. Continue to take snapshot of picture B --> API returns successfully (errorCode = 0) but result is the same as previous call (picture A).
  5. Call take snapshot again of picture C --> API returns the result of picture B.

Expected behavior
API should return the correct image and should not cache the result

same as me, please help us have a look on this

Which platform you are facing this issue, I tested on macOS, and it seems to work fine.

@littleGnAl I tested on Android device.

Okay, I will test it later.

It is most likely a bug on 6.2.6, I tested it on 6.3.0, and it works fine, please try our example on the main branch.

@littleGnAl Thank you for your support, it is working correctly now.

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please raise a new issue.