mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(spf): basic audio only use case + use-case-composition doc-type + implementation skills (#1584)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
338020e1d5
commit
1a3cb45b29
@@ -148,7 +148,7 @@ export function App() {
|
||||
onPreloadChange={setPreload}
|
||||
availableSources={availableSources}
|
||||
isBackgroundVideo={preset === 'background-video'}
|
||||
isSimpleHlsVideo={preset === 'simple-hls-video'}
|
||||
isSimpleHls={preset.startsWith('simple-hls-')}
|
||||
isMuxVideo={preset === 'mux-video'}
|
||||
isMuxAudio={preset === 'mux-audio'}
|
||||
platforms={PLATFORMS}
|
||||
|
||||
@@ -25,7 +25,7 @@ type NavbarProps = {
|
||||
onPreloadChange: (value: PreloadValue) => void;
|
||||
availableSources: readonly SourceId[];
|
||||
isBackgroundVideo: boolean;
|
||||
isSimpleHlsVideo: boolean;
|
||||
isSimpleHls: boolean;
|
||||
isMuxVideo: boolean;
|
||||
isMuxAudio: boolean;
|
||||
platforms: readonly Platform[];
|
||||
@@ -49,6 +49,7 @@ const PRESET_LABELS: Record<Preset, string> = {
|
||||
'mux-video': 'Mux Video',
|
||||
'mux-audio': 'Mux Audio',
|
||||
'simple-hls-video': 'Simple HLS Video',
|
||||
'simple-hls-audio-only': 'Simple HLS Audio-Only',
|
||||
'dash-video': 'DASH Video',
|
||||
audio: 'Audio',
|
||||
'background-video': 'Background Video',
|
||||
@@ -75,7 +76,7 @@ export function Navbar({
|
||||
onPreloadChange,
|
||||
availableSources,
|
||||
isBackgroundVideo,
|
||||
isSimpleHlsVideo,
|
||||
isSimpleHls,
|
||||
isMuxVideo,
|
||||
isMuxAudio,
|
||||
platforms,
|
||||
@@ -131,7 +132,7 @@ export function Navbar({
|
||||
onChange={onSourceChange}
|
||||
options={availableSources
|
||||
.filter((id) => {
|
||||
if (isSimpleHlsVideo) return sources[id].subType === 'mp4';
|
||||
if (isSimpleHls) return sources[id].subType === 'mp4';
|
||||
if (isMuxVideo || isMuxAudio) return sources[id].type !== 'dash';
|
||||
return true;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user