mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(packages): add poster component to video skins (#994)
This commit is contained in:
@@ -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 />` : '';
|
||||
}
|
||||
Reference in New Issue
Block a user