diff --git a/package.json b/package.json index 4c4f9d6..481e923 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/pages/custom/index.tsx b/pages/custom/index.tsx index f527c47..3643716 100644 --- a/pages/custom/index.tsx +++ b/pages/custom/index.tsx @@ -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, diff --git a/pages/rooms/[name].tsx b/pages/rooms/[name].tsx index 01d8d3c..7a470d6 100644 --- a/pages/rooms/[name].tsx +++ b/pages/rooms/[name].tsx @@ -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, diff --git a/yarn.lock b/yarn.lock index a7d3270..86013d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"