Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13046] Android: Audioplayer progress not fired when playing local media

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-20T01:00:16.000+0000
Affected Version/sRelease 3.1.0
Fix Version/s2013 Sprint 17, 2013 Sprint 17 API, Release 3.2.0
ComponentsAndroid
Labelsandroid, audioplayer, event, progress, qe-testadded
ReporterMichael Gangolf
AssigneeBiju pm
Created2012-11-14T07:15:49.000+0000
Updated2014-06-19T12:42:35.000+0000

Description

Problem description

When playing a local file the progress event won't get fired. Playing a stream will fire it
 
var audioPlayer = Ti.Media.createAudioPlayer({ 
    url: '/podcast.mp3',
    allowBackground: true
});

audioPlayer.addEventListener('progress',function(e) {
    Ti.API.info(e.progress);
});  

Comments

  1. Michael Gangolf 2013-01-17

    still happens with SDK 3.0.0 GA
  2. Shameer Jan 2013-03-15

    The problem reproduces with release 3.0.2 and master release 3.1.0 Tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 iOS iPhone Simulator: iOS SDK version: 6.0 It works fine on IOS iphone simulator
  3. Biju pm 2013-08-07

    PR :- https://github.com/appcelerator/titanium_mobile/pull/4550
  4. Paras Mishra 2013-10-23

    Audioplayer progress is getting fired when playing local file. Verified fix on: Device : HTC desire V , Android version : 4.0.3 SDK: 3.2.0.v20131022171645 CLI version : 3.2.0 OS : MAC OSX 10.8.4 Alloy : 1.2.2 Appcelerator Studio, build: 3.2.0.201310181700 XCode : 5

JSON Source