{ "id": "119577", "key": "TIMOB-15830", "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": null, "resolutiondate": null, "created": "2013-09-06T08:12:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "createsound", "looping", "sound" ], "versions": [ { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" } ], "issuelinks": [ { "id": "33392", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "122942", "key": "TIMOB-15831", "fields": { "summary": "Android: Ti.Media.createSound \"looping\" set on creation fails ", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:04.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On iOS this works fine:\r\n\r\n{code:javascript}\r\nvar music = Ti.Media.createSound({\r\n url: 'music.aac',\r\n looping: true\r\n});\r\nmusic.play();\r\n{code}\r\n\r\nOn Android you need to set {{looping}} after creation and in the tests I ran even right before calling `play()`, or the music will stop after one or some loops.\r\n\r\n{code:javascript}\r\nvar music = Ti.Media.createSound({\r\n url: 'music.aac',\r\n looping: true\r\n});\r\nmusic.looping = true;\r\nmusic.play();\r\n{code}\r\n\r\nh1. Logs\r\nWhen the playback on Android stops, the logs show:\r\n\r\n{code}\r\n09-10 21:35:16.422: I/ALSAModule(1838): Terminated ALSA PLAYBACK device hifi\r\n09-10 21:35:16.812: I/yamaha::media::UserDep(1838): UserDep::getRouteInfo(output: audioengine=0, devices=00000002h\r\n09-10 21:35:16.812: I/yamaha::media::UserDep(1838): incall: onoff=0, devices=00000000h\r\n09-10 21:35:16.812: I/yamaha::media::UserDep(1838): capture: onoff=0, devices=00000000h, audioSource=0\r\n09-10 21:35:16.812: I/yamaha::media::UserDep(1838): playback: audio_onoff=0, line_onoff=0)\r\n{code}\r\n\r\nh1. Steps to reproduce\r\n\r\n# Create a new app: {{titanium create -p ios,android -n testLoop -d . --id test.loop}}\r\n# As {{app.js}} use:\r\n {code}\r\n var w = Ti.UI.createWindow({backgroundColor:'white'});\r\n var b = Ti.UI.createButton({title:'Play'});\r\n var m = Ti.Media.createSound({\r\n url: 'music.aac',\r\n looping: true\r\n });\r\n b.addEventListener('click', function () {\r\n m.play();\r\n });\r\n w.add(b);\r\n w.open();\r\n {code}\r\n# Drop the attached {{music.acc}} (CCL) in the {{Resources}} folder.\r\n# Run the app on both iOS and Android and see the music stop on Android after one or some loops.", "attachment": [ { "id": "42363", "filename": "music.aac", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-10T19:37:31.000+0000", "size": 121214, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Ti.Media.createSound \"looping\" set on creation fails ", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK/CLI 3.1.3.RC\r\niOS7-beta6 on iPhone 4S\r\nAndroid 4.1.2 on Samsung Galaxy S2", "comment": { "comments": [ { "id": "270402", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "HEllo,\nI tested your iOS version in a device with Android 4.3, can't reproduce the issue. Anything in your logs? Any specific device?\n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-09-09T20:36:00.000+0000", "updated": "2013-09-09T20:36:00.000+0000" }, { "id": "270425", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Tested, working fine. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-09-09T21:08:07.000+0000", "updated": "2013-09-09T21:08:07.000+0000" }, { "id": "270653", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Updated the description with exact step. Problem doesn't always occur after one loop, but sometimes after several. Setting {{looping}} after creation fixes it.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-09-10T19:44:34.000+0000", "updated": "2013-09-10T19:44:34.000+0000" }, { "id": "281363", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~mpmiranda] did you try again after my update and comment on Sept 10th? I see you are on a closing-tickets spree but that shouldn't go without any decent response!", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2013-11-26T06:51:18.000+0000", "updated": "2013-11-26T06:51:18.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }