Skip to content

Commit

Permalink
Add player context to embed route
Browse files Browse the repository at this point in the history
  • Loading branch information
owi92 committed Sep 25, 2023
1 parent fba8a81 commit 0f65d73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/routes/Embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { Spinner } from "../ui/Spinner";
import { MovingTruck } from "../ui/Waiting";
import { b64regex } from "./util";
import { EmbedQuery } from "./__generated__/EmbedQuery.graphql";
import { PlayerContextProvider } from "../ui/player/PlayerContext";


const query = graphql`
Expand Down Expand Up @@ -60,7 +61,9 @@ export const EmbedVideoRoute = makeRoute(url => {
}} />
</PlayerPlaceholder>
}>
<Embed queryRef={queryRef} />
<PlayerContextProvider>
<Embed queryRef={queryRef} />
</PlayerContextProvider>
</Suspense>
</ErrorBoundary>,
dispose: () => queryRef.dispose(),
Expand Down

0 comments on commit 0f65d73

Please sign in to comment.