mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-15 08:43:44 +08:00
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
/**
|
|
* Video Source Configuration and Management
|
|
* Handles third-party video API sources with validation and health checks
|
|
*/
|
|
|
|
import type { VideoSource } from '@/lib/types';
|
|
import { DEFAULT_SOURCES } from './default-sources';
|
|
|
|
/**
|
|
* Get source by ID
|
|
*/
|
|
export function getSourceById(id: string): VideoSource | undefined {
|
|
return DEFAULT_SOURCES.find(source => source.id === id);
|
|
}
|
|
|
|
|