[ 
https://issues.apache.org/jira/browse/CB-10810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15198723#comment-15198723
 ] 

Thillaiganesh Chan commented on CB-10810:
-----------------------------------------

I think iOS code should be as below, this below invoking code worked for me

audio = new Media("cdvfile://localhost/persistent/songs/my_song.mp3", 
mediaSuccess, mediaError);
audio.play();

Points to Note :
1. The file path should have 'cdvfile://localhost/persistent/', this is for 
'Documents' folder in sandbox of the Device/Simulator
2. Hope 'mediaStatus' is not needed, please refer documentation at 
"https://github.com/apache/cordova-plugin-media";

Confirm the same , if this worked ?

> 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]

Reply via email to