cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BeTop (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12611) Support for Android expansion Audio file
Date Tue, 28 Mar 2017 15:57:41 GMT

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

BeTop commented on CB-12611:
----------------------------

I installed xapkreader plugin correctly, so  <audio> tag works fine.
but when I tried to play with Media plugin, It returned error code 1.
so this should be solved.

> Support for Android expansion Audio file
> ----------------------------------------
>
>                 Key: CB-12611
>                 URL: https://issues.apache.org/jira/browse/CB-12611
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.5.0
>            Reporter: BeTop
>
> Hello, How are you doing?
> Today I got problem to play audio file of obb file.
> It works <audio controls src="content://com.flinklearning.marshalladult.expansion/common/Languages/English/LoginHelp/help_team.mp3"></audio>
> But Media plugin is not working. so we need solution.
> var url = "content://com.flinklearning.marshalladult.expansion/common/Languages/English/LoginHelp/help_team.mp3";
> var my_media = new Media(url,
> // success callback
> function()
> { console.log("playAudio():Audio Success"); }
> ,
> // error callback
> function(err)
> { console.log("playAudio():Audio Error: ", err); }
> );
> // Play audio
> my_media.play();
> I got error code=1.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message