{ "id": "89161", "key": "TIMOB-8418", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13277", "name": "Sprint 2012-08", "archived": true, "released": true, "releaseDate": "2012-04-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-24T17:14:29.000+0000", "created": "2012-03-29T11:35:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_media", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-09-24T17:14:29.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nThis doesn't seem to work for me, the mp3 plays fine via a web browser though. The code is correct so internally it doesn't like the file format. Is there a reason for this or something I can do (including encoding the audio differently) so that it's compatible. 90% of the audio files I encode all work, it's only a small number that don't and they are encoded the same way always.\r\n\r\nReplacing the audio file with something else works fine.\r\n\r\nThis is the last stumbling block to release my app.\r\n\r\nh4. Actual Results\r\nOne file it's working, one it's not. EVen if they are encoded in the same way. \r\n\r\nh4. Expected results\r\nSimilar encoded mp3 files should play just fine\r\n\r\nh4. Test Case\r\n1. Create a new mobile Project\r\n2. Add this code\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar vurl = \"http://www.voxsci.com/turtle2.mp3\"; \r\nTi.API.info(vurl); \r\nvar streamer = Titanium.Media.createAudioPlayer({\r\n\tallowBackground: true,\r\n\turl:vurl,\r\n\tpreload:true\r\n}); \r\nstreamer.start();\r\nTi.API.info(\"Audio started\");\r\nwin.open();\r\n{code}\r\n3. If you change the vurl to \"http://www.voxsci.com/turtle1.mp3\", it will work just fine. \r\n\r\nh4. Extra info\r\nI checked the files, they are similar: Mono, 44100hz, 32 bits float and they work in browser and audacity. ", "attachment": [], "flagged": false, "summary": "iOS: AudioPlayer is failing for some mp3, even if are in a supported format/encoding.", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.2\r\nPlatform & version: iOS 5.0 \r\nDevice Details: iOS simulator \r\nHost Operating System: OSX 1.0.7.3\r\nTitanium Studio version: 1.0.9", "comment": { "comments": [ { "id": "190464", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/1971 pending.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-10T13:51:29.000+0000", "updated": "2012-04-10T13:51:29.000+0000" }, { "id": "190914", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed by PR #1971", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-04-13T12:33:44.000+0000", "updated": "2012-04-13T12:33:44.000+0000" }, { "id": "191240", "author": { "name": "tjoshi@turtle.net", "key": "tjoshi@turtle.net", "displayName": "Tushar Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks so much for fixing this, how can I possibly use this fix? Can you point me to a way I can get the latest titanium code to incorporate this fix please? Or is it a matter of waiting for the next titanium release? \r\n\r\nThanks again, \r\n\r\nTushar", "updateAuthor": { "name": "tjoshi@turtle.net", "key": "tjoshi@turtle.net", "displayName": "Tushar Joshi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-16T16:50:16.000+0000", "updated": "2012-04-16T16:50:16.000+0000" }, { "id": "213634", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK 2.1.1\r\niPhone4 5.1.1\r\nclosing as fixed", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T13:27:04.000+0000", "updated": "2012-08-10T16:54:55.000+0000" }, { "id": "213743", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-10T04:19:17.000+0000", "updated": "2012-08-10T04:19:17.000+0000" }, { "id": "215909", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Audio player fails to consistently play mp3 . Rerunning test several times might result in one success to hear the sound.\r\nThe same behavior in 2.1.1.\r\n\r\nTested on:\r\nTitanium Studio, build: 2.1.2.201208201549\r\nTitanium SDK: 2.1.2.v20120821160113\r\nMac osx Mountain Lion 10.8\r\niPhone4s 5.0.1\r\niPad3 4G 5.1.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T15:25:27.000+0000", "updated": "2012-08-23T15:25:27.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }