strataplayer 1.2.14 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -54,9 +54,30 @@ export interface ContextMenuItem {
|
|
|
54
54
|
onClick?: (close: () => void) => void;
|
|
55
55
|
click?: (close: () => void) => void;
|
|
56
56
|
checked?: boolean;
|
|
57
|
-
showBorder?: boolean;
|
|
58
57
|
separator?: boolean;
|
|
59
58
|
isLabel?: boolean;
|
|
59
|
+
showBorder?: boolean;
|
|
60
|
+
}
|
|
61
|
+
export interface SettingItem {
|
|
62
|
+
id?: string;
|
|
63
|
+
html?: string | React.ReactNode;
|
|
64
|
+
icon?: string | React.ReactNode;
|
|
65
|
+
tooltip?: string;
|
|
66
|
+
separator?: boolean;
|
|
67
|
+
active?: boolean;
|
|
68
|
+
value?: any;
|
|
69
|
+
switch?: boolean;
|
|
70
|
+
onSwitch?: (item: SettingItem, checked: boolean) => void;
|
|
71
|
+
range?: boolean;
|
|
72
|
+
min?: number;
|
|
73
|
+
max?: number;
|
|
74
|
+
step?: number;
|
|
75
|
+
onRange?: (value: number) => void;
|
|
76
|
+
formatValue?: (value: number) => string;
|
|
77
|
+
onClick?: (item: SettingItem) => void;
|
|
78
|
+
click?: (item: SettingItem) => void;
|
|
79
|
+
children?: SettingItem[];
|
|
80
|
+
currentLabel?: React.ReactNode;
|
|
60
81
|
}
|
|
61
82
|
export interface ControlItem {
|
|
62
83
|
id?: string;
|
|
@@ -69,18 +90,7 @@ export interface ControlItem {
|
|
|
69
90
|
className?: string;
|
|
70
91
|
style?: React.CSSProperties;
|
|
71
92
|
isBuiltIn?: boolean;
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
export interface SettingItem {
|
|
75
|
-
id?: string;
|
|
76
|
-
html: string | React.ReactNode;
|
|
77
|
-
icon?: string | React.ReactNode;
|
|
78
|
-
tooltip?: string;
|
|
79
|
-
switch?: boolean;
|
|
80
|
-
onSwitch?: (item: SettingItem) => boolean | void;
|
|
81
|
-
onClick?: () => void;
|
|
82
|
-
click?: () => void;
|
|
83
|
-
isDefault?: boolean;
|
|
93
|
+
children?: SettingItem[];
|
|
84
94
|
}
|
|
85
95
|
export interface PlayerState {
|
|
86
96
|
isPlaying: boolean;
|
|
@@ -260,6 +270,7 @@ export declare class StrataCore {
|
|
|
260
270
|
toggleLoop(): void;
|
|
261
271
|
setFlip(direction: 'horizontal' | 'vertical'): void;
|
|
262
272
|
setAspectRatio(ratio: string): void;
|
|
273
|
+
private updateAspectRatio;
|
|
263
274
|
private initCast;
|
|
264
275
|
requestCast(): void;
|
|
265
276
|
private loadMediaToCast;
|