You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
697 B
27 lines
697 B
1 month ago
|
import * as React from 'react';
|
||
|
import { PageClientImpl } from './PageClientImpl';
|
||
|
import { isVideoCodec } from '@/lib/types';
|
||
|
|
||
|
export default function Page({
|
||
|
params,
|
||
|
searchParams,
|
||
|
}: {
|
||
|
params: { roomName: string };
|
||
|
searchParams: {
|
||
|
// FIXME: We should not allow values for regions if in playground mode.
|
||
|
region?: string;
|
||
|
hq?: string;
|
||
|
codec?: string;
|
||
|
};
|
||
|
}) {
|
||
|
const codec =
|
||
|
typeof searchParams.codec === 'string' && isVideoCodec(searchParams.codec)
|
||
|
? searchParams.codec
|
||
|
: 'vp9';
|
||
|
const hq = searchParams.hq === 'true' ? true : false;
|
||
|
|
||
|
return (
|
||
|
<PageClientImpl roomName={params.roomName} region={searchParams.region} hq={hq} codec={codec} />
|
||
|
);
|
||
|
}
|