fix: corrected my interface to be unified and std
This commit is contained in:
@@ -6,17 +6,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface AdapterAPI {
|
export interface AdapterAPI {
|
||||||
load?: () => void;
|
load: () => void;
|
||||||
play?: () => void;
|
play: () => void;
|
||||||
pause?: () => void;
|
pause: () => void;
|
||||||
destroy?: () => void;
|
destroy: () => void;
|
||||||
seek?: (time: number) => void;
|
time: number;
|
||||||
currentTime?: () => number;
|
volume: number;
|
||||||
duration?: () => number;
|
muted: boolean;
|
||||||
volume?: (volume: number) => void;
|
readonly duration: () => number;
|
||||||
currentVolume?: () => number;
|
|
||||||
muted?: () => boolean;
|
|
||||||
mute?: (muted?: boolean) => void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PlayerConfig {
|
export interface PlayerConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user