{ "id": "105582", "key": "TIMOB-13441", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-05-02T22:05:12.000+0000", "created": "2012-11-27T22:13:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-02T22:05:12.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": "Using 3.1.0 sdk:\r\n\r\nTrying to play a remote .m4a (audio mp4) file with AudioPlayer. The .m4a file was created with AudioRecorder.\r\n\r\nIn KitchenSink Resources/ui/handheld/ios/phone/sound_session_module.js:\r\n\r\nreplace:\r\n\r\nvar audio = Ti.Media.createAudioPlayer({url:'http://appcelerator.qe.test.data.s3.amazonaws.com/KSResources/audio/audio_session.mp3'});\r\n\r\nwith:\r\n\r\nvar audio = Ti.Media.createAudioPlayer({url:'https://s3.amazonaws.com/titaniumtestfiles/135397723348131a88e5b0d1ace317567db810607f3b6.m4a'});\r\n\r\nThis will not play in Simulator or on device (iPhone 4S). It crashes after displaying the following log:\r\n\r\n{code}[INFO] : \b\b \b 2013-04-06 12:03:34.141 KitchenSink[41416:9207] Queueing of audio buffer failed. err: ˇˇˇŒ -50{code}\r\n\r\nHowever, it will work on device if you replace:\r\n\r\nTitanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_AMBIENT;\r\n\r\nwith:\r\n\r\nTitanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAY_AND_RECORD;\r\nor Titanium.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAYBACK;\r\n\r\nThe simulator however, continues to crash.", "attachment": [], "flagged": false, "summary": "iOS: mp4 not playing with AudioPlayer", "creator": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "environment": "iOS, Kitchen Sink", "comment": { "comments": [ { "id": "230332", "author": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "body": "Also happens in 2.1.4GA.", "updateAuthor": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "created": "2012-12-06T23:30:45.000+0000", "updated": "2012-12-06T23:30:45.000+0000" }, { "id": "238074", "author": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "body": "Any updates on this? I've also noticed another problem (I'm thinking of putting this into its own ticket.): changing the bufferSize (e.g. from default 2048 to 16384) causes the app to crash. I get the following error: \n\nAudioQueue changed state in unexpected way.\n\nThis is on device, iPhone 4S. Using recent Ti 3.1.0 build, iOS 6.1 SDK.\nsetBufferSize() works fine with mp3 files. The app does not crash with mp4 files using default bufferSize.", "updateAuthor": { "name": "quahada", "key": "quahada", "displayName": "Shashi Jain", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-11T23:53:14.000+0000", "updated": "2013-02-11T23:53:14.000+0000" }, { "id": "246169", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed with Ti SDK 3.0.2 GA. Updated description to clarify a couple of things.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-06T19:11:33.000+0000", "updated": "2013-04-06T19:11:33.000+0000" }, { "id": "418929", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-02T22:05:12.000+0000", "updated": "2017-05-02T22:05:12.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }