[
https://issues.apache.org/jira/browse/CB-10810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15198753#comment-15198753
]
Thillaiganesh Chan commented on CB-10810:
-----------------------------------------
Also one more point to note, if in case playing from a bundle resource, the
below worked for me.
function getCordovaPath() {
var path = window.location.pathname;
var cordovaPath = path.substring(0, path.lastIndexOf('/') + 1);
return cordovaPath;
};
var resource = getCordovaPath() + 'songs/FirstSong.mp3';
console.log('resource : ' + resource);
// The Path on an iOS device should be similar to
/var/mobile/Applications/{GUID}/{appName}/www/songs/FirstSong.mp3
audio = new Media(resource, mediaSuccess, mediaError);
audio.play();
> Callbacks on iOS
> ----------------
>
> Key: CB-10810
> URL: https://issues.apache.org/jira/browse/CB-10810
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Media
> Environment: Cordova IOS 3.8.0 (201502XX)
> Reporter: Sunny Cupertino
> Labels: iOS, triaged
>
> Both version 2.2.1 (the most recent in github) and 2.2.0 (the one linked from
> npm) don't callback when playing is finished in iOS. Version 2.2.1 works on
> android though.
> I went back to version 2.0.0 and that works well on iOS.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]