[TIMOB-4992] iOS:AudioPlayer only plays part of an mp3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2020-01-09T19:18:15.000+0000 |
Affected Version/s | Release 1.7.2, Release 6.0.1, Release 5.5.1, Release 6.0.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | api, engSchedule, regression, supportTeam |
Reporter | Jon Alter |
Assignee | Unknown |
Created | 2011-08-12T15:54:08.000+0000 |
Updated | 2020-01-09T19:18:15.000+0000 |
Description
Playing certain mp3s causes a problem for AudioPlayer and it only plays about half a second at the beginning of the file.
Step 1: put the attached audio files on a server that you can access
Step 2: change the url in the code so that you can access the files that you are serving
Step 3: run the code below
Step 4: click the play button
Step 5: notice that the file named bad.mp3 does not play the entire file
Step 6: test that file by playing it with another audio player
var win = Ti.UI.createWindow({
backgroundColor: "blue"
});
var button = Ti.UI.createButton({
title: "play",
height: 40,
width: 200,
top: 20
});
button.addEventListener('click', function(e){
var player = Titanium.Media.createAudioPlayer({
url:'http://example.com/bad.mp3'
});
player.start();
});
win.add(button);
win.open();
Associated Helpdesk Ticket
http://appc.me/c/APP-667978Attachments
File | Date | Size |
---|---|---|
bad.mp3 | 2011-08-12T15:54:08.000+0000 | 23795 |
good.mp3 | 2011-08-12T15:54:08.000+0000 | 45998 |
Tested on the iOS simulator with 2.1GA, issue still exists.
Hello, The issue seems to be happening for remote audio. Audio player stops in somewhere for a large audio file> 30+min. The below code can regenerate the issue for iOS and Android
Any workaround for playing such big files in audio player smoothly?
Closing. Unable to reproduce. mp3 files are playing fully. I have also not been able to reproduce the remote audio file issue.