mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(cli): add @videojs/cli docs command for LLM-friendly installation (#1214)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
9681515446
commit
24b8b77c8a
@@ -1,43 +1,12 @@
|
||||
import { atom } from 'nanostores';
|
||||
|
||||
export type Renderer =
|
||||
| 'background-video'
|
||||
// | 'cloudflare'
|
||||
// | 'dash'
|
||||
| 'hls'
|
||||
| 'html5-audio'
|
||||
| 'html5-video';
|
||||
// | 'jwplayer'
|
||||
// | 'mux-audio'
|
||||
// | 'mux-background-video'
|
||||
// | 'mux-video'
|
||||
// | 'shaka'
|
||||
// | 'spotify'
|
||||
// | 'vimeo'
|
||||
// | 'wistia'
|
||||
// | 'youtube'
|
||||
|
||||
export type Skin = 'video' | 'audio' | 'minimal-video' | 'minimal-audio';
|
||||
|
||||
export type UseCase = 'default-video' | 'default-audio' | 'background-video';
|
||||
import type { InstallMethod, Renderer, Skin, UseCase } from '@/utils/installation/types';
|
||||
|
||||
export const renderer = atom<Renderer>('html5-video');
|
||||
export const skin = atom<Skin>('video');
|
||||
export const useCase = atom<UseCase>('default-video');
|
||||
export const sourceUrl = atom<string>('');
|
||||
|
||||
export type InstallMethod = 'cdn' | 'npm' | 'pnpm' | 'yarn' | 'bun';
|
||||
|
||||
export const installMethod = atom<InstallMethod>('cdn');
|
||||
|
||||
/** Mux playback ID from successful upload (used by code generation) */
|
||||
export const muxPlaybackId = atom<string | null>(null);
|
||||
|
||||
export const VALID_RENDERERS: Record<UseCase, Renderer[]> = {
|
||||
'default-video': [
|
||||
'html5-video',
|
||||
/* 'cloudflare', 'dash', */ 'hls' /* , 'jwplayer', 'mux-video', 'vimeo', 'wistia', 'youtube' */,
|
||||
],
|
||||
'default-audio': ['html5-audio' /* , 'mux-audio', 'spotify' */],
|
||||
'background-video': ['background-video' /* , 'mux-background-video' */],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user