mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
27 lines
659 B
TypeScript
27 lines
659 B
TypeScript
import { atom } from 'nanostores';
|
|
|
|
export type Renderer =
|
|
| 'cloudflare'
|
|
| 'dash'
|
|
| 'hls'
|
|
| 'html5-audio'
|
|
| 'html5-video'
|
|
| 'jwplayer'
|
|
| 'mux'
|
|
| 'shaka'
|
|
| 'spotify'
|
|
| 'vimeo'
|
|
| 'wistia'
|
|
| 'youtube';
|
|
|
|
export type Skin = 'default-video' | 'default-audio' | 'minimal';
|
|
|
|
export type UseCase = 'default-video' | 'default-audio' | 'background-video';
|
|
|
|
export const renderer = atom<Renderer>('html5-video');
|
|
export const skin = atom<Skin>('default-video');
|
|
export const useCase = atom<UseCase>('default-video');
|
|
|
|
/** Mux playback ID from successful upload (used by code generation) */
|
|
export const muxPlaybackId = atom<string | null>(null);
|