Skip to content

Commit c8091ac

Browse files
committed
Quickfix for testing
1 parent 86beaeb commit c8091ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
import { widget } from "./widget";
2727
import { useTheme } from "./useTheme";
2828
import { ProcessorProvider } from "./livekit/TrackProcessorContext";
29-
import { useUrlParams } from "./UrlParams";
29+
// import { useUrlParams } from "./UrlParams";
3030

3131
const SentryRoute = Sentry.withSentryReactRouterV7Routing(Route);
3232

@@ -55,7 +55,7 @@ const ThemeProvider: FC<SimpleProviderProps> = ({ children }) => {
5555
};
5656

5757
export const App: FC = () => {
58-
const { controlledOutput } = useUrlParams();
58+
// const { controlledOutput } = useUrlParams();
5959
const [loaded, setLoaded] = useState(false);
6060
useEffect(() => {
6161
Initializer.init()
@@ -92,7 +92,7 @@ export const App: FC = () => {
9292
<Suspense fallback={null}>
9393
<ClientProvider>
9494
<ProcessorProvider>
95-
{controlledOutput ? (
95+
{true ? (
9696
<ControlledOutputMediaDevicesProvider>
9797
{inner}
9898
</ControlledOutputMediaDevicesProvider>

src/livekit/MediaDevicesContext.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ function useControlledOutput(): MediaDevice {
325325
);
326326
const earpiceDevice = useObservableEagerState(
327327
setOutputDevices$.pipe(
328+
startWith<OutputDevice[]>([]),
328329
map((devices) => devices.find((d) => d.forEarpiece)),
329330
),
330331
);

0 commit comments

Comments
 (0)