mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-22 18:46:26 +08:00
parent
d30b534150
commit
6bba72d32a
@ -255,8 +255,7 @@ export class MediaPlugin {
|
|||||||
// Creates a new media object
|
// Creates a new media object
|
||||||
// Resolves with the media object
|
// Resolves with the media object
|
||||||
// or rejects with the error
|
// or rejects with the error
|
||||||
const instance = new Media(src, resolve, reject, onStatusUpdate);
|
const instance = new Media(src, () => resolve(new MediaObject(instance)), reject, onStatusUpdate);
|
||||||
return resolve(new MediaObject(instance));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user