[jira] [Commented] (CB-10878) Audio breaks on some Android devices

2016-09-12 Thread Joe Bowser (JIRA)

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

Joe Bowser commented on CB-10878:
-

Neat, an excuse to get an NVidia Shield Tablet :)

Seriously though, I agree with [~ghenry22] about releasing the file.

> Audio breaks on some Android devices
> 
>
> Key: CB-10878
> URL: https://issues.apache.org/jira/browse/CB-10878
> Project: Apache Cordova
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Plugin Media
>Affects Versions: 0.2.16
> Environment: Samsung GT-I8730 Galaxy Express, and Nvidia Shield Tablet
>Reporter: Pixcoder
>  Labels: Android, triaged
>
> Hi,
> My code is simple : every click triggers a sound play.
> 
> url = "/android_asset/www/"+url;
> AUDIO_OBJECTS[url] = new Media( url,
> //success callback
>  function () {
>  console.log("playAudio():Audio Success");
>  },
>   //error callback
>  function (err) {
> alert("playAudio():Audio Error  code : " + 
> err.code + "  stringified : "+JSON.stringify(err))
>  }
> );
> AUDIO_OBJECTS[url].play();
> 
> This works well ! Until a certain number of click, maybe 20. My sounds are 
> various mp3, from 1 second length to 10.
> After about 20 clicks, the sound is not played anymore.
> I have to exit the app and come back, sometimes it works again, sometimes not.
> Also, sometimes it fires the error callback with error code "0" ... 
> On my Nexus 9 (same code), it works well, audio never breaks, but sometimes 
> it struggles a bit before the sound is correctly played.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (CB-10878) Audio breaks on some Android devices

2016-09-06 Thread Gaven Henry (JIRA)

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

Gaven Henry commented on CB-10878:
--

make sure that you call release after each file finishes playing before 
starting the next.  I believe this is due to a limit on resources on Anrdoid 
that are available to an app.

> Audio breaks on some Android devices
> 
>
> Key: CB-10878
> URL: https://issues.apache.org/jira/browse/CB-10878
> Project: Apache Cordova
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Plugin Media
>Affects Versions: 0.2.16
> Environment: Samsung GT-I8730 Galaxy Express, and Nvidia Shield Tablet
>Reporter: Pixcoder
>  Labels: Android, triaged
>
> Hi,
> My code is simple : every click triggers a sound play.
> 
> url = "/android_asset/www/"+url;
> AUDIO_OBJECTS[url] = new Media( url,
> //success callback
>  function () {
>  console.log("playAudio():Audio Success");
>  },
>   //error callback
>  function (err) {
> alert("playAudio():Audio Error  code : " + 
> err.code + "  stringified : "+JSON.stringify(err))
>  }
> );
> AUDIO_OBJECTS[url].play();
> 
> This works well ! Until a certain number of click, maybe 20. My sounds are 
> various mp3, from 1 second length to 10.
> After about 20 clicks, the sound is not played anymore.
> I have to exit the app and come back, sometimes it works again, sometimes not.
> Also, sometimes it fires the error callback with error code "0" ... 
> On my Nexus 9 (same code), it works well, audio never breaks, but sometimes 
> it struggles a bit before the sound is correctly played.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (CB-10878) Audio breaks on some Android devices

2016-03-15 Thread Pixcoder (JIRA)

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

Pixcoder commented on CB-10878:
---

Thank you,
I use 

> Audio breaks on some Android devices
> 
>
> Key: CB-10878
> URL: https://issues.apache.org/jira/browse/CB-10878
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 0.2.16
> Environment: Samsung GT-I8730 Galaxy Express, and Nvidia Shield Tablet
>Reporter: Pixcoder
>  Labels: Android, wfc
>
> Hi,
> My code is simple : every click triggers a sound play.
> 
> url = "/android_asset/www/"+url;
> AUDIO_OBJECTS[url] = new Media( url,
> //success callback
>  function () {
>  console.log("playAudio():Audio Success");
>  },
>   //error callback
>  function (err) {
> alert("playAudio():Audio Error  code : " + 
> err.code + "  stringified : "+JSON.stringify(err))
>  }
> );
> AUDIO_OBJECTS[url].play();
> 
> This works well ! Until a certain number of click, maybe 20. My sounds are 
> various mp3, from 1 second length to 10.
> After about 20 clicks, the sound is not played anymore.
> I have to exit the app and come back, sometimes it works again, sometimes not.
> Also, sometimes it fires the error callback with error code "0" ... 
> On my Nexus 9 (same code), it works well, audio never breaks, but sometimes 
> it struggles a bit before the sound is correctly played.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (CB-10878) Audio breaks on some Android devices

2016-03-15 Thread Nikhil Khandelwal (JIRA)

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

Nikhil Khandelwal commented on CB-10878:


Are you using the Media plugin?

> Audio breaks on some Android devices
> 
>
> Key: CB-10878
> URL: https://issues.apache.org/jira/browse/CB-10878
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Media
>Affects Versions: 0.2.16
> Environment: Samsung GT-I8730 Galaxy Express, and Nvidia Shield Tablet
>Reporter: Pixcoder
>
> Hi,
> My code is simple : every click triggers a sound play.
> 
> url = "/android_asset/www/"+url;
> AUDIO_OBJECTS[url] = new Media( url,
> //success callback
>  function () {
>  console.log("playAudio():Audio Success");
>  },
>   //error callback
>  function (err) {
> alert("playAudio():Audio Error  code : " + 
> err.code + "  stringified : "+JSON.stringify(err))
>  }
> );
> AUDIO_OBJECTS[url].play();
> 
> This works well ! Until a certain number of click, maybe 20. My sounds are 
> various mp3, from 1 second length to 10.
> After about 20 clicks, the sound is not played anymore.
> I have to exit the app and come back, sometimes it works again, sometimes not.
> Also, sometimes it fires the error callback with error code "0" ... 
> On my Nexus 9 (same code), it works well, audio never breaks, but sometimes 
> it struggles a bit before the sound is correctly played.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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