Skip to content

Commit 78a06f3

Browse files
authored
fix: type video source (#6023)
1 parent 77cdbe4 commit 78a06f3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/web/src/components/Shared/Post/Attachments.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { TRANSFORMS } from "@hey/data/constants";
22
import imageKit from "@hey/helpers/imageKit";
33
import type { MetadataAsset } from "@hey/types/misc";
4+
import type { VideoSrc } from "@livepeer/react";
45
import { getSrc } from "@livepeer/react/external";
56
import { memo, useState } from "react";
67
import Audio from "@/components/Shared/Audio";
@@ -104,7 +105,9 @@ const Attachments = ({ asset, attachments }: AttachmentsProps) => {
104105
<Video
105106
poster={asset?.cover as string}
106107
src={
107-
getSrc(asset?.uri) || [{ src: asset?.uri, type: "video" } as any]
108+
getSrc(asset?.uri) || [
109+
{ src: asset?.uri as string, type: "video" } as VideoSrc
110+
]
108111
}
109112
/>
110113
)}

0 commit comments

Comments
 (0)