{ "id": "147757", "key": "TIMOB-18900", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-05-26T02:45:31.000+0000", "created": "2015-05-12T22:34:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-4.0.0" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "47682", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "outwardIssue": { "id": "117176", "key": "TIMOB-14552", "fields": { "summary": "iOS: Setting the position of the audio playBack in audioPlayer", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-05-28T20:56:06.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": "When adjusting a slider I get the below error:\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 18457;\r\n[ERROR] : line = 1;\r\n[ERROR] : message = \"undefined is not a function (evaluating 'a.seekToTime(d.value)')\";\r\n[ERROR] : sourceURL = \"file:///private/var/mobile/Containers/Bundle/Application/E048CFB7-E212-43C8-A9B5-10AFB6F573DC/MediaModule.app/acceptance.js\";\r\n[ERROR] : stack = \"i@file:///private/var/mobile/Containers/Bundle/Application/E048CFB7-E212-43C8-A9B5-10AFB6F573DC/MediaModule.app/acceptance.js:1:18457\";\r\n[ERROR] : }\r\n[ERROR] : ErrorController is up. ABORTING open\r\n[ERROR] : Analytics error sending request: The request timed out.\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Create a new project with the below code\r\n2. Run the app\r\n3. Adjust the slider\r\n\r\n*Actual Results*\r\nThe above error is thrown\r\n\r\n*Expected Results*\r\nNo error is thrown.\r\n\r\n{code}\r\nvar _window = Ti.UI.createWindow({backgroundColor:\"white\"});\r\n\r\nvar audioPlayer = Ti.Media.createAudioPlayer({\r\n url: 'http://tenminutepodcast.com/Audio/BitKillerJones.mp3',\r\n });\r\n\r\n var start = Ti.UI.createButton({\r\n title: 'START',\r\n top: 30,\r\n left: 10\r\n });\r\n var pause = Ti.UI.createButton({\r\n title: 'PAUSE',\r\n top: 30\r\n });\r\n var stop = Ti.UI.createButton({\r\n title: 'STOP',\r\n top: 30,\r\n right: 10\r\n });\r\n\r\n\r\n _window.add(start);\r\n _window.add(pause);\r\n _window.add(stop);\r\n\r\n var slider = Ti.UI.createSlider({\r\n min: 0,\r\n max: 612000,\r\n visible: false,\r\n width: '80%'\r\n })\r\n\r\n _window.add(slider);\r\n\r\n var updateOnProgress = false;\r\n audioPlayer.addEventListener('progress', function(e) {\r\n\r\n if (updateOnProgress) {\r\n slider.value = e.progress;\r\n }\r\n })\r\n\r\n\r\n function resetPlayer(e) {\r\n Ti.API.info('RESET PLAYER');\r\n audioPlayer.stop();\r\n slider.visible = false;\r\n updateOnProgress = false;\r\n slider.value = 0;\r\n }\r\n\r\n audioPlayer.addEventListener('change', function(e) {\r\n if (e.state == audioPlayer.STATE_STOPPED) {\r\n resetPlayer(e);\r\n }\r\n })\r\n\r\n start.addEventListener('click', function(e) {\r\n slider.visible = true;\r\n updateOnProgress = true;\r\n audioPlayer.start();\r\n })\r\n\r\n stop.addEventListener('click', resetPlayer)\r\n\r\n pause.addEventListener('click', function(e) {\r\n audioPlayer.pause();\r\n })\r\n\r\n slider.addEventListener('touchstart', function(e) {\r\n updateOnProgress = false;\r\n })\r\n\r\n function updateStream(e) {\r\n audioPlayer.seekToTime(slider.value);\r\n updateOnProgress = true;\r\n }\r\n\r\n slider.addEventListener('touchend', updateStream);\r\n slider.addEventListener('touchcancel', updateStream);\r\n \r\n_window.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Slider throws error on slide", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.10.3\r\nStudio 4.0.0.201505120319\r\nTi SDK 4.0.0.v20150511112612\r\nAppc NPM 0.3.55\r\nAppc CLI 0.2.282\r\nTi CLI 4.0.0-beta8\r\nAlloy 1.6.0-beta4\r\nNode v0.10.37\r\nJava 1.7.0_45", "closedSprints": [ { "id": 407, "state": "closed", "name": "2015 Sprint 11 SDK", "startDate": "2015-05-23T00:00:08.253Z", "endDate": "2015-06-06T00:00:00.000Z", "completeDate": "2015-06-08T16:18:16.381Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "353451", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "*seekToTime()* is not an existing method in *audioPlayer*.\r\nResolving ticket as invalid.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-26T02:45:04.000+0000", "updated": "2015-05-26T02:45:04.000+0000" }, { "id": "353506", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cng] Can you please re-evaluate TIMOB-14552 in light of this?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-26T16:18:10.000+0000", "updated": "2015-05-26T16:18:10.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }