chore: changed the position of types
now the types related to adapters are inside AdapterAPI type file
This commit is contained in:
@@ -15,3 +15,17 @@ export interface AdapterAPI {
|
|||||||
muted: boolean;
|
muted: boolean;
|
||||||
readonly duration: () => number;
|
readonly duration: () => number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface AdapterConfig {
|
||||||
|
native?: boolean;
|
||||||
|
hls?: boolean | HLSOptions;
|
||||||
|
dash?: boolean | DASHOptions;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface HLSOptions {
|
||||||
|
src?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DASHOptions {
|
||||||
|
src?: string;
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
* creation: 28/4/2026
|
* creation: 28/4/2026
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { AdapterConfig } from './AdapterAPI';
|
||||||
|
|
||||||
export interface PlayerConfig {
|
export interface PlayerConfig {
|
||||||
type: 'native' | 'hls' | 'dash';
|
type: 'native' | 'hls' | 'dash';
|
||||||
theme?: 'dark' | 'light';
|
theme?: 'dark' | 'light';
|
||||||
@@ -42,17 +44,3 @@ export interface UIElementConfigColor {
|
|||||||
hoverColor?: string;
|
hoverColor?: string;
|
||||||
disabledColor?: string;
|
disabledColor?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AdapterConfig {
|
|
||||||
native?: boolean;
|
|
||||||
hls?: boolean | HLSOptions;
|
|
||||||
dash?: boolean | DASHOptions;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface HLSOptions {
|
|
||||||
enableWorker?: boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface DASHOptions {
|
|
||||||
enableWorker?: boolean;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
export { AdapterAPI } from './AdapterAPI';
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
PlayerConfig,
|
AdapterAPI,
|
||||||
ControlConfig,
|
|
||||||
AdapterConfig,
|
AdapterConfig,
|
||||||
HLSOptions,
|
HLSOptions,
|
||||||
DASHOptions,
|
DASHOptions,
|
||||||
} from './PlayerConfig';
|
} from './AdapterAPI';
|
||||||
|
|
||||||
|
export { PlayerConfig, ControlConfig } from './PlayerConfig';
|
||||||
|
|
||||||
export { PlayerEvents } from './PlaybackState';
|
export { PlayerEvents } from './PlaybackState';
|
||||||
|
|||||||
Reference in New Issue
Block a user