[TIMOB-13046] Android: Audioplayer progress not fired when playing local media
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-20T01:00:16.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 17, 2013 Sprint 17 API, Release 3.2.0 |
Components | Android |
Labels | android, audioplayer, event, progress, qe-testadded |
Reporter | Michael Gangolf |
Assignee | Biju pm |
Created | 2012-11-14T07:15:49.000+0000 |
Updated | 2014-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);
});
still happens with SDK 3.0.0 GA
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
PR :- https://github.com/appcelerator/titanium_mobile/pull/4550
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