mirror of
https://github.com/element-hq/element-call.git
synced 2026-11-13 00:47:57 +00:00
The controls and the pipeline each asked the SDK on their own whether background processing is supported, so one could offer what the other refused. One function answers both, and it asks the browser, kept to desktops until the menu says what the effects cost elsewhere. Ported from spec/background-effects/2-pipeline (#4282):f78e9c05and87638325, the tests on the lobby and call footers as they are. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
16 lines
568 B
TypeScript
16 lines
568 B
TypeScript
/*
|
|
Copyright 2026 Element Creations Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
import { supportsBackgroundProcessors as supportsBackgroundProcessorsLivekitSdk } from "@livekit/track-processors";
|
|
|
|
import { platform } from "../Platform";
|
|
|
|
/** One answer for the controls and the pipeline, so neither offers what the other refuses. */
|
|
export function supportsBackgroundProcessors(): boolean {
|
|
return supportsBackgroundProcessorsLivekitSdk() && platform === "desktop";
|
|
}
|