chore: changed the position of types
now the types related to adapters are inside AdapterAPI type file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user