You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Frank Cox (JIRA)" <ji...@apache.org> on 2013/11/23 23:04:35 UTC

[jira] [Updated] (CB-5474) sound playback problems with media plugin on Android KitKat (4.4)

     [ https://issues.apache.org/jira/browse/CB-5474?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Cox updated CB-5474:
--------------------------

    Description: 
I've developed a cross platform child's game with Cordova using the Media plugin for sounds. The same code works on iOS (in the Apple app store as "Hiding Hippos") and on Android in all tested versions including 2.6 on Galaxy Player and 4.3 on Nexus 7 and 10. I does not work correctly on Android 4.4 on Nexus 5. 

I have multiple sound clips in single sound files and play each section with code like this:

function seekPlay (from, to) {
    clearTimeout(t);
    s.seekTo(from);
    s.play();
    t = setTimeout(function () {
        s.pause();
    }, to);
}

There can be up to three sounds playing at the same time using separate sound files and copies of the above code. 

On Android 4.4 KitKat with Cordova 3.1.0 or 3.2.0 there are several, erratic sound issues. Some sounds may not play at all, cut off early or play too long. After calling the seekPlay() function once or twice, sound settles down and works correctly. However, there may be glitches again later in the game.

As I said, the sound works correctly on all other tested Android and all recent iOS versons.

  was:
I've developed a cross platform child's game with Cordova using the Media plugin for sounds. The same code works on iOS (in the Apple app store as "Hiding Hippos") and on Android in all tested versions including 2.6 on Galaxy Player and 4.3 on Nexus 7 and 10. I does not work on Android 4.4 on Nexus 5. 

I have multiple sound clips in single sound files and play each section with code like this:

function seekPlay (from, to) {
    clearTimeout(t);
    s.seekTo(from);
    s.play();
    t = setTimeout(function () {
        s.pause();
    }, to);
}

There can be up to three sounds playing at the same time using separate sound files and copies of the above code. 

On Android 4.4 KitKat with Cordova 3.1.0 or 3.2.0 there are several, erratic sound issues. Some sounds may not play at all, cut off early or play too long. After calling the seekPlay() function once or twice, sound settles down and works correctly. However, there may be glitches again later in the game.

As I said, the sound works correctly on all other tested Android and all recent iOS versons.


> sound playback problems with media plugin on Android KitKat (4.4)
> -----------------------------------------------------------------
>
>                 Key: CB-5474
>                 URL: https://issues.apache.org/jira/browse/CB-5474
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Media
>    Affects Versions: 3.1.0, 3.2.0
>         Environment: Android 4.4 on Nexus 5
>            Reporter: Frank Cox
>
> I've developed a cross platform child's game with Cordova using the Media plugin for sounds. The same code works on iOS (in the Apple app store as "Hiding Hippos") and on Android in all tested versions including 2.6 on Galaxy Player and 4.3 on Nexus 7 and 10. I does not work correctly on Android 4.4 on Nexus 5. 
> I have multiple sound clips in single sound files and play each section with code like this:
> function seekPlay (from, to) {
>     clearTimeout(t);
>     s.seekTo(from);
>     s.play();
>     t = setTimeout(function () {
>         s.pause();
>     }, to);
> }
> There can be up to three sounds playing at the same time using separate sound files and copies of the above code. 
> On Android 4.4 KitKat with Cordova 3.1.0 or 3.2.0 there are several, erratic sound issues. Some sounds may not play at all, cut off early or play too long. After calling the seekPlay() function once or twice, sound settles down and works correctly. However, there may be glitches again later in the game.
> As I said, the sound works correctly on all other tested Android and all recent iOS versons.



--
This message was sent by Atlassian JIRA
(v6.1#6144)