mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
13 lines
377 B
TypeScript
13 lines
377 B
TypeScript
import { getMuxAssetId } from '../mux';
|
|
import type { SourceId } from '../sources';
|
|
|
|
type MuxStoryboardProps = {
|
|
source: SourceId;
|
|
};
|
|
|
|
export function MuxStoryboard({ source }: MuxStoryboardProps) {
|
|
const id = getMuxAssetId(source);
|
|
if (!id) return null;
|
|
return <track kind="metadata" label="thumbnails" src={`https://image.mux.com/${id}/storyboard.vtt`} default />;
|
|
}
|