From e0b578e1fbcc8a23069580cdc56bbed24521f8e6 Mon Sep 17 00:00:00 2001 From: hyrious Date: Fri, 3 Nov 2023 13:36:19 +0800 Subject: [PATCH] fix(service-providers): stop using camera on history back This issue was introduced in 009e583404439c3365a2047c1fbf07b00e77445a --- .../agora-rtc/agora-rtc-web/src/rtc-test-avatar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service-providers/agora-rtc/agora-rtc-web/src/rtc-test-avatar.ts b/service-providers/agora-rtc/agora-rtc-web/src/rtc-test-avatar.ts index 3b8d65bd836..384e3679762 100644 --- a/service-providers/agora-rtc/agora-rtc-web/src/rtc-test-avatar.ts +++ b/service-providers/agora-rtc/agora-rtc-web/src/rtc-test-avatar.ts @@ -128,7 +128,7 @@ export class RTCTestAvatar implements IServiceVideoChatAvatar { }); } } - if (localCameraTrack && !localCameraTrack.enabled) { + if (localCameraTrack) { await localCameraTrack.setEnabled(shouldCamera); } } catch (e) {