Skip to content

Commit

Permalink
fix(media-plugin): MediaPlugin.create promise never fires (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskou authored and ihadeed committed Mar 22, 2017
1 parent 0c9eb8e commit 82d2ae8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/@ionic-native/plugins/media/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class MediaObject {
* @param src {string} A URI containing the audio content.
* @param onStatusUpdate {Function} A callback function to be invoked when the status of the file changes
*/
constructor(private _objectInstnace: any) {}
constructor(private _objectInstance: any) {}

/**
* Get the current amplitude of the current recording.
Expand Down Expand Up @@ -256,7 +256,8 @@ export class MediaPlugin {
// Creates a new media object
// Resolves with the media object
// or rejects with the error
const instance = new Media(src, () => resolve(new Media(instance)), reject, onStatusUpdate);
const instance = new Media(src, resolve, reject, onStatusUpdate);
return resolve(new MediaObject(instance));
});

}
Expand Down

0 comments on commit 82d2ae8

Please sign in to comment.