Skip to content

Commit

Permalink
feat(media): add MEDIA_STATUS and MEDIA_ERROR enums
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Jul 15, 2017
1 parent b5fe663 commit 1decedd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/@ionic-native/plugins/media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand Down

0 comments on commit 1decedd

Please sign in to comment.