cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Cox (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-5474) sound playback problems with media plugin on Android KitKat (4.4)
Date Sat, 23 Nov 2013 21:46:35 GMT
Frank Cox created CB-5474:
-----------------------------

             Summary: 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
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)

Mime
View raw message