mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 15:12:51 +08:00
Return MediaError object instead of value
This commit is contained in:
parent
7ee04ebf31
commit
369d140040
@ -211,7 +211,7 @@ PhoneGap.Media.onStatus = function(id, msg, value) {
|
||||
}
|
||||
else if (msg === Media.MEDIA_ERROR) {
|
||||
if (media.errorCallback) {
|
||||
media.errorCallback(value);
|
||||
media.errorCallback({"code":value});
|
||||
}
|
||||
}
|
||||
else if (msg == Media.MEDIA_POSITION) {
|
||||
|
Loading…
Reference in New Issue
Block a user