Skip to content

Commit 7e8b31e

Browse files
authored
feat: Add playback ID to details (#352)
1 parent a038202 commit 7e8b31e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/VideoDetails/VideoDetails.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ const VideoDetails: React.FC<VideoDetailsProps> = (props) => {
280280
size={2}
281281
/>
282282
<IconInfo text={`Mux ID: \n${displayInfo.id}`} icon={TagIcon} size={2} />
283+
{displayInfo?.playbackId && (
284+
<IconInfo
285+
text={`Playback ID: ${displayInfo.playbackId}`}
286+
icon={TagIcon}
287+
size={2}
288+
/>
289+
)}
283290
</Stack>
284291
</Stack>
285292
</TabPanel>

src/util/getVideoMetadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function getVideoMetadata(doc: VideoAssetDocument) {
1010
return {
1111
title: doc.filename || id.slice(0, 12),
1212
id: id,
13+
playbackId: doc.playbackId,
1314
createdAt: date,
1415
duration: doc.data?.duration ? formatSeconds(doc.data?.duration) : undefined,
1516
aspect_ratio: doc.data?.aspect_ratio,

0 commit comments

Comments
 (0)