parent
a2e04f7048
commit
495f49ba0e
4 changed files with 12 additions and 11 deletions
|
@ -11,7 +11,7 @@
|
|||
"dependencies": {
|
||||
"@livekit/components-react": "1.3.0",
|
||||
"@livekit/components-styles": "1.0.6",
|
||||
"livekit-client": "1.14.0",
|
||||
"livekit-client": "1.14.1",
|
||||
"livekit-server-sdk": "1.2.6",
|
||||
"next": "13.5.5",
|
||||
"next-seo": "^6.0.0",
|
||||
|
|
|
@ -2,15 +2,15 @@ import { formatChatMessageLinks, LiveKitRoom, VideoConference } from '@livekit/c
|
|||
import {
|
||||
ExternalE2EEKeyProvider,
|
||||
LogLevel,
|
||||
RoomConnectOptions,
|
||||
Room,
|
||||
RoomConnectOptions,
|
||||
RoomOptions,
|
||||
VideoPresets,
|
||||
} from 'livekit-client';
|
||||
import { useRouter } from 'next/router';
|
||||
import { DebugMode } from '../../lib/Debug';
|
||||
import { decodePassphrase } from '../../lib/client-utils';
|
||||
import { useMemo } from 'react';
|
||||
import { decodePassphrase } from '../../lib/client-utils';
|
||||
import { DebugMode } from '../../lib/Debug';
|
||||
|
||||
export default function CustomRoomConnection() {
|
||||
const router = useRouter();
|
||||
|
@ -30,6 +30,7 @@ export default function CustomRoomConnection() {
|
|||
publishDefaults: {
|
||||
videoSimulcastLayers: [VideoPresets.h540, VideoPresets.h216],
|
||||
red: !e2eeEnabled,
|
||||
videoCodec: 'vp9',
|
||||
},
|
||||
adaptiveStream: { pixelDensity: 'screen' },
|
||||
dynacast: true,
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
'use client';
|
||||
import {
|
||||
LiveKitRoom,
|
||||
PreJoin,
|
||||
LocalUserChoices,
|
||||
useToken,
|
||||
VideoConference,
|
||||
formatChatMessageLinks,
|
||||
useToken,
|
||||
} from '@livekit/components-react';
|
||||
import {
|
||||
ExternalE2EEKeyProvider,
|
||||
|
@ -17,6 +16,7 @@ import {
|
|||
} from 'livekit-client';
|
||||
|
||||
import type { NextPage } from 'next';
|
||||
import dynamic from 'next/dynamic';
|
||||
import Head from 'next/head';
|
||||
import { useRouter } from 'next/router';
|
||||
import { useMemo, useState } from 'react';
|
||||
|
@ -27,7 +27,6 @@ import {
|
|||
randomString,
|
||||
useServerUrl,
|
||||
} from '../../lib/client-utils';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
||||
const PreJoinNoSSR = dynamic(
|
||||
async () => {
|
||||
|
@ -129,6 +128,7 @@ const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => {
|
|||
? [VideoPresets.h1080, VideoPresets.h720]
|
||||
: [VideoPresets.h540, VideoPresets.h216],
|
||||
red: !e2eeEnabled,
|
||||
videoCodec: 'vp9',
|
||||
},
|
||||
audioCaptureDefaults: {
|
||||
deviceId: userChoices.audioDeviceId ?? undefined,
|
||||
|
|
|
@ -1837,10 +1837,10 @@ levn@^0.4.1:
|
|||
prelude-ls "^1.2.1"
|
||||
type-check "~0.4.0"
|
||||
|
||||
livekit-client@1.14.0:
|
||||
version "1.14.0"
|
||||
resolved "https://registry.yarnpkg.com/livekit-client/-/livekit-client-1.14.0.tgz#3852138e01022227b24201f2625881c4e4c9d3a4"
|
||||
integrity sha512-jQmIaPze4hTJCDLskMHDnvvz9RpHvWURgf/ZL8/m3DBUY3ERE2KkwcEX0cGom3FZgiiywolJFM3uKMC28Ad+nw==
|
||||
livekit-client@1.14.1:
|
||||
version "1.14.1"
|
||||
resolved "https://registry.yarnpkg.com/livekit-client/-/livekit-client-1.14.1.tgz#2403b953c77cfc9285d591c9bb9e05cc0ecb0e0b"
|
||||
integrity sha512-SlWp+EM2og1KmGIpMS4FF/bd9mkApUcpIIYuJmWbu2P2B5GYOfBIb7i7FmcLjFCneICSKEWO80dWLNEKpl7arA==
|
||||
dependencies:
|
||||
"@bufbuild/protobuf" "^1.3.0"
|
||||
events "^3.3.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue