mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-08 20:09:19 +00:00
Merge branch 'livekit' into toger5/logger-getChild-fix
This commit is contained in:
@@ -31,12 +31,10 @@ widgetTest(
|
|||||||
const brooksFrame = brooks.page
|
const brooksFrame = brooks.page
|
||||||
.locator('iframe[title="Element Call"]')
|
.locator('iframe[title="Element Call"]')
|
||||||
.contentFrame();
|
.contentFrame();
|
||||||
|
|
||||||
// We should show a ringing tile, let's check for that
|
// We should show a ringing tile, let's check for that
|
||||||
await expect(
|
await expect(
|
||||||
brooksFrame
|
brooksFrame
|
||||||
.getByTestId("videoTile")
|
.getByTestId("videoTile")
|
||||||
.filter({ has: brooksFrame.getByText(whistler.displayName) })
|
|
||||||
.filter({ has: brooksFrame.getByText("Calling…") }),
|
.filter({ has: brooksFrame.getByText("Calling…") }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
@@ -83,23 +81,22 @@ widgetTest(
|
|||||||
}),
|
}),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
// In order to confirm that the call is disconnected we will check that the message composer is shown again.
|
// We confirm that we started in Pip mode (voice call) and check that we still see the composer.
|
||||||
// So first we need to confirm that it is hidden when in the call.
|
|
||||||
await expect(
|
|
||||||
whistler.page.locator(".mx_BasicMessageComposer"),
|
|
||||||
).not.toBeVisible();
|
|
||||||
await expect(
|
|
||||||
brooks.page.locator(".mx_BasicMessageComposer"),
|
|
||||||
).not.toBeVisible();
|
|
||||||
|
|
||||||
// ASSERT hanging up on one side ends the call for both
|
|
||||||
await brooksFrame.getByRole("button", { name: "End call" }).click();
|
|
||||||
|
|
||||||
// The widget should be closed on both sides and the timeline should be back on screen
|
|
||||||
await expect(
|
await expect(
|
||||||
whistler.page.locator(".mx_BasicMessageComposer"),
|
whistler.page.locator(".mx_BasicMessageComposer"),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
await expect(brooks.page.locator(".mx_BasicMessageComposer")).toBeVisible();
|
||||||
|
|
||||||
|
// ASSERT hanging up on one side ends the call for both
|
||||||
|
await brooksFrame.getByRole("button", { name: "End call" }).click();
|
||||||
|
|
||||||
|
// The widget should be closed on both sides
|
||||||
|
await expect(
|
||||||
|
whistler.page.locator('iframe[title="Element Call"]'),
|
||||||
|
).not.toBeVisible();
|
||||||
|
await expect(
|
||||||
|
whistler.page.locator('iframe[title="Element Call"]'),
|
||||||
|
).not.toBeVisible();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ProcessorWrapper,
|
ProcessorWrapper,
|
||||||
supportsBackgroundProcessors,
|
supportsBackgroundProcessors as supportsBackgroundProcessorsLivekitSdk,
|
||||||
type BackgroundOptions,
|
type BackgroundOptions,
|
||||||
} from "@livekit/track-processors";
|
} from "@livekit/track-processors";
|
||||||
import {
|
import {
|
||||||
@@ -29,6 +29,7 @@ import {
|
|||||||
import { BlurBackgroundTransformer } from "./BlurBackgroundTransformer";
|
import { BlurBackgroundTransformer } from "./BlurBackgroundTransformer";
|
||||||
import { type Behavior } from "../state/Behavior";
|
import { type Behavior } from "../state/Behavior";
|
||||||
import { type ObservableScope } from "../state/ObservableScope";
|
import { type ObservableScope } from "../state/ObservableScope";
|
||||||
|
import { platform } from "../Platform";
|
||||||
|
|
||||||
//TODO-MULTI-SFU: This is not yet fully there.
|
//TODO-MULTI-SFU: This is not yet fully there.
|
||||||
// it is a combination of exposing observable and react hooks.
|
// it is a combination of exposing observable and react hooks.
|
||||||
@@ -106,6 +107,10 @@ interface Props {
|
|||||||
children: JSX.Element;
|
children: JSX.Element;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function supportsBackgroundProcessors(): boolean {
|
||||||
|
return supportsBackgroundProcessorsLivekitSdk() && platform === "desktop";
|
||||||
|
}
|
||||||
|
|
||||||
export const ProcessorProvider: FC<Props> = ({ children }) => {
|
export const ProcessorProvider: FC<Props> = ({ children }) => {
|
||||||
// The setting the user wants to have
|
// The setting the user wants to have
|
||||||
const [blurActivated] = useSetting(backgroundBlurSettings);
|
const [blurActivated] = useSetting(backgroundBlurSettings);
|
||||||
|
|||||||
Reference in New Issue
Block a user