diff --git a/package.json b/package.json index 95020571..07a9204a 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "@formatjs/intl-segmenter": "^11.7.3", "@livekit/components-core": "^0.12.0", "@livekit/components-react": "^2.0.0", + "@livekit/protocol": "^1.33.0", "@opentelemetry/api": "^1.4.0", "@opentelemetry/core": "^1.25.1", "@opentelemetry/exporter-trace-otlp-http": "^0.57.0", diff --git a/src/tile/MediaView.test.tsx b/src/tile/MediaView.test.tsx index 55ad8a12..02a468d3 100644 --- a/src/tile/MediaView.test.tsx +++ b/src/tile/MediaView.test.tsx @@ -13,7 +13,8 @@ import { type TrackReference, type TrackReferencePlaceholder, } from "@livekit/components-core"; -import { Track, TrackPublication } from "livekit-client"; +import { LocalTrackPublication, Track } from "livekit-client"; +import { TrackInfo } from "@livekit/protocol"; import { type ComponentProps } from "react"; import { MediaView } from "./MediaView"; @@ -28,7 +29,10 @@ describe("MediaView", () => { }; const trackReference: TrackReference = { ...trackReferencePlaceholder, - publication: new TrackPublication(Track.Kind.Video, "id", "name"), + publication: new LocalTrackPublication( + Track.Kind.Video, + new TrackInfo({ sid: "id", name: "name" }), + ), }; const baseProps: ComponentProps = { diff --git a/yarn.lock b/yarn.lock index 45efe2d6..4469b4c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1756,7 +1756,7 @@ resolved "https://registry.yarnpkg.com/@livekit/mutex/-/mutex-1.1.1.tgz#72492b611d55be8130ba2271b7a436d94b1bc6d4" integrity sha512-EsshAucklmpuUAfkABPxJNhzj9v2sG7JuzFDL4ML1oJQSV14sqrpTYnsaOudMAw9yOaW53NU3QQTlUQoRs4czw== -"@livekit/protocol@1.33.0": +"@livekit/protocol@1.33.0", "@livekit/protocol@^1.33.0": version "1.33.0" resolved "https://registry.yarnpkg.com/@livekit/protocol/-/protocol-1.33.0.tgz#b8dfcf82ca501e747533d519e51b5c80176bf03e" integrity sha512-361mBlFgI3nvn8oSQIL38gDUBGbOSwsEOqPgX0c1Jwz75/sD/TTvPeAM4zAz6OrV5Q4vI4Ruswecnyv5SG4oig==