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

@@ -15,3 +15,17 @@ export interface AdapterAPI {
muted: boolean;
readonly duration: () => number;
}
export interface AdapterConfig {
native?: boolean;
hls?: boolean | HLSOptions;
dash?: boolean | DASHOptions;
}
export interface HLSOptions {
src?: string;
}
export interface DASHOptions {
src?: string;
}

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;
}

View File

@@ -1,11 +1,10 @@
export { AdapterAPI } from './AdapterAPI';
export {
PlayerConfig,
ControlConfig,
AdapterAPI,
AdapterConfig,
HLSOptions,
DASHOptions,
} from './PlayerConfig';
} from './AdapterAPI';
export { PlayerConfig, ControlConfig } from './PlayerConfig';
export { PlayerEvents } from './PlaybackState';