Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2443] Streaming Audio is lagging on Galaxy S3...

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-02T23:58:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsAndroid, Audio, Audioplayer, Bean, Jelly, Streaming
Reporterheenok
AssigneeMauro Parra-Miranda
Created2012-11-26T15:38:53.000+0000
Updated2016-03-08T07:41:29.000+0000

Description

*Problem description* I work on radio app which plays stream audio. Everything work fine in Android 2.X and on devices like Galaxy S. However when i test on Android 4.1 (Jelly Bean) and Galaxy S3 for example, the audio is lagging (it start / stop 3 times in a row, then finally work for a while). To be sure i tested the kitchensink demo on my Galaxy S3 (WIFI Connection), my colleague's S3 too, and it's the same problem. All work fine on older devices. *Test case*
var s = "http://broadcast.infomaniak.ch/deltafmdunkerque-high.mp3";
 
var sound = Ti.Media.createAudioPlayer({
    url : s,
    preload : true,
    allowBackground : true
});
 
sound.format = Titanium.Media.AUDIO_FORMAT_AAC;
sound.addEventListener('error', function(e) {
    if (e.message == "Unknown media error") {
        alert("No");
    }
});
 
sound.start();

Comments

  1. heenok 2012-12-20

    Any Update on this ?
  2. Daniel Sefton 2013-04-02

    Cannot reproduce with Ti SDK 3.0.2 GA with Samsung Galaxy S3 Android 4.0.4, or Samsung Galaxy S2 Android 2.3.6. The audio plays fine without lagging. Please try the test case I added to the description.

JSON Source