feat(packages): add poster component to video skins (#994)

This commit is contained in:
Sam Potts
2026-03-18 17:57:10 +11:00
committed by GitHub
parent b9bada9567
commit 59bbf6c209
45 changed files with 445 additions and 171 deletions
@@ -1,9 +0,0 @@
import { getMuxAssetId } from '../mux';
import type { SourceId } from '../sources';
export function renderMuxStoryboard(source: SourceId): string {
const id = getMuxAssetId(source);
return id
? `<track kind="metadata" label="thumbnails" src="https://image.mux.com/${id}/storyboard.vtt" default />`
: '';
}
@@ -0,0 +1,3 @@
export function renderStoryboard(src?: string | undefined): string {
return src ? `<track kind="metadata" label="thumbnails" src="${src}" default />` : '';
}