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

does enableVirtualBackground work for flutter web?

EritonSoares opened this issue · comments

I have a project using agora_rtc_engine 6.2.6 using flutter WEB and I would like to use the enableVirtualBackground property.

await _engine.enableVirtualBackground(
enabled: true,
backgroundSource: const VirtualBackgroundSource(
blurDegree: BackgroundBlurDegree.blurDegreeHigh),
segproperty: const SegmentationProperty(),
);

However, when I configure the property it returns the following error below

" (in promise) Error: AgoraRtcException(-4, null)
at Object.throw_ [as throw] (errors.dart:294:49)
at agora_rtc_engine_impl$.RtcEngineImpl.__.enableVirtualBackground (agora_rtc_engine_impl.dart:738:7)
at enableVirtualBackground.next ()
at async_patch.dart:45:50
at _RootZone.runUnary (zone.dart:1661:54)
at _FutureListener.thenAwait.handleValue (future_impl.dart:156:18)
at handleValueCallback (future_impl.dart:840:44)
at _Future._propagateToListeners (future_impl.dart:869:13)
at [_completeWithValue] (future_impl.dart:641:5)
at async._AsyncCallbackEntry.new.callback (future_impl.dart:715:7)
at Object._microtaskLoop (schedule_microtask.dart:40:11)
at _startMicrotaskLoop (schedule_microtask.dart:49:5)
at async_patch.dart:181:15"

Does this property work in flutter web? If it works, what could I be doing wrong?

I'll be waiting, thank you very much.

It's not supported at this time.

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.

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.