mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(media): add MEDIA_STATUS and MEDIA_ERROR enums
This commit is contained in:
parent
b5fe6631fe
commit
1decedd899
@ -114,6 +114,21 @@ export interface MediaError {
|
||||
|
||||
}
|
||||
|
||||
export enum MEDIA_STATUS {
|
||||
NONE = 0,
|
||||
STARTING,
|
||||
RUNNING,
|
||||
PAUSED,
|
||||
STOPPED
|
||||
}
|
||||
|
||||
export enum MEDIA_ERROR {
|
||||
ABORTED = 1,
|
||||
NETWORK,
|
||||
DECODE,
|
||||
SUPPORTED
|
||||
}
|
||||
|
||||
export type MediaErrorCallback = (error: MediaError) => void;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user