chore: changed the position of types

now the types related to adapters are inside AdapterAPI type file
This commit is contained in:
2026-04-29 23:09:02 +03:30
parent 9d8c65382d
commit f284ea494c
3 changed files with 20 additions and 19 deletions

View File

@@ -5,6 +5,8 @@
* creation: 28/4/2026
*/
import { AdapterConfig } from './AdapterAPI';
export interface PlayerConfig {
type: 'native' | 'hls' | 'dash';
theme?: 'dark' | 'light';
@@ -42,17 +44,3 @@ export interface UIElementConfigColor {
hoverColor?: string;
disabledColor?: string;
}
export interface AdapterConfig {
native?: boolean;
hls?: boolean | HLSOptions;
dash?: boolean | DASHOptions;
}
export interface HLSOptions {
enableWorker?: boolean;
}
export interface DASHOptions {
enableWorker?: boolean;
}