Quickfix for testing
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
|||||||
import { widget } from "./widget";
|
import { widget } from "./widget";
|
||||||
import { useTheme } from "./useTheme";
|
import { useTheme } from "./useTheme";
|
||||||
import { ProcessorProvider } from "./livekit/TrackProcessorContext";
|
import { ProcessorProvider } from "./livekit/TrackProcessorContext";
|
||||||
import { useUrlParams } from "./UrlParams";
|
// import { useUrlParams } from "./UrlParams";
|
||||||
|
|
||||||
const SentryRoute = Sentry.withSentryReactRouterV7Routing(Route);
|
const SentryRoute = Sentry.withSentryReactRouterV7Routing(Route);
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ const ThemeProvider: FC<SimpleProviderProps> = ({ children }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const App: FC = () => {
|
export const App: FC = () => {
|
||||||
const { controlledOutput } = useUrlParams();
|
// const { controlledOutput } = useUrlParams();
|
||||||
const [loaded, setLoaded] = useState(false);
|
const [loaded, setLoaded] = useState(false);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
Initializer.init()
|
Initializer.init()
|
||||||
@@ -92,7 +92,7 @@ export const App: FC = () => {
|
|||||||
<Suspense fallback={null}>
|
<Suspense fallback={null}>
|
||||||
<ClientProvider>
|
<ClientProvider>
|
||||||
<ProcessorProvider>
|
<ProcessorProvider>
|
||||||
{controlledOutput ? (
|
{true ? (
|
||||||
<ControlledOutputMediaDevicesProvider>
|
<ControlledOutputMediaDevicesProvider>
|
||||||
{inner}
|
{inner}
|
||||||
</ControlledOutputMediaDevicesProvider>
|
</ControlledOutputMediaDevicesProvider>
|
||||||
|
|||||||
@@ -325,6 +325,7 @@ function useControlledOutput(): MediaDevice {
|
|||||||
);
|
);
|
||||||
const earpiceDevice = useObservableEagerState(
|
const earpiceDevice = useObservableEagerState(
|
||||||
setOutputDevices$.pipe(
|
setOutputDevices$.pipe(
|
||||||
|
startWith<OutputDevice[]>([]),
|
||||||
map((devices) => devices.find((d) => d.forEarpiece)),
|
map((devices) => devices.find((d) => d.forEarpiece)),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user