{ "id": "117176", "key": "TIMOB-14552", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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-07-15T10:54:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "axe", "module_media", "qe-testadded", "supportTeam" ], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [ { "id": "47682", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "147757", "key": "TIMOB-18900", "fields": { "summary": "iOS: Slider throws error on slide", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "33099", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "122144", "key": "TIMOB-15675", "fields": { "summary": "Android: Setting the position of the audio playBack in audioPlayer", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": null, "updated": "2019-07-24T14:31:32.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": "h2. Description\r\nAbility to set the position of the media playback to start the media from the middle instead of from start.", "attachment": [], "flagged": false, "summary": "iOS: Setting the position of the audio playBack in audioPlayer", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "275989", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We can not implement the requested functionality. What we can implement is the ability to set stream position.\nTest Case\n{code}\nvar win = Titanium.UI.createWindow({ \n backgroundColor:'#fff',\n});\n \nvar audioPlayer = Ti.Media.createAudioPlayer({ \n url: 'http://tenminutepodcast.com/Audio/BitKillerJones.mp3',\n}); \n\nvar start = Ti.UI.createButton({title:'START', top:30, left:10});\nvar pause = Ti.UI.createButton({title:'PAUSE', top:30});\nvar stop = Ti.UI.createButton({title:'STOP', top:30, right:10});\n\n\nwin.add(start);\nwin.add(pause);\nwin.add(stop);\n\nvar slider = Ti.UI.createSlider({\n min:0,\n max:612000,\n visible:false,\n width:'80%'\n})\n\nwin.add(slider);\n\nvar updateOnProgress = false;\naudioPlayer.addEventListener('progress',function(e){\n\n if (updateOnProgress) {\n slider.value = e.progress;\n }\n})\n\n\nfunction resetPlayer(e)\n{\n Ti.API.info('RESET PLAYER');\n audioPlayer.stop();\n slider.visible = false;\n updateOnProgress = false;\n slider.value = 0;\n}\n\naudioPlayer.addEventListener('change',function(e){\n if (e.state == audioPlayer.STATE_STOPPED) {\n resetPlayer(e);\n }\n})\n\nstart.addEventListener('click',function(e){\n slider.visible = true;\n updateOnProgress = true;\n audioPlayer.start();\n})\n\nstop.addEventListener('click',resetPlayer)\n\npause.addEventListener('click',function(e){\n audioPlayer.pause();\n})\n\nslider.addEventListener('touchstart',function(e){\n updateOnProgress = false;\n})\n\nfunction updateStream(e){\n audioPlayer.seekToTime(slider.value);\n updateOnProgress = true;\n}\n\nslider.addEventListener('touchend',updateStream);\nslider.addEventListener('touchcancel',updateStream);\n\nwin.open();\n{code}", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T19:09:42.000+0000", "updated": "2013-10-21T19:09:42.000+0000" }, { "id": "275990", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4817\r\n\r\nThe above PR has been reverted.\r\nhttps://github.com/appcelerator/titanium_mobile/pull/4890", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-21T19:11:01.000+0000", "updated": "2013-10-30T22:25:40.000+0000" }, { "id": "277278", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nMac osx 10.9 Mavericks\r\nTitanium Studio, build: 3.2.0.201310290757\r\nCLI 3.2.0\r\nAlthough it works on iOS 6 and 7 Simulators, it fails on \r\nDevice: iPhone5s iOS 7.0.2\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-29T22:53:00.000+0000", "updated": "2013-10-29T22:53:27.000+0000" }, { "id": "374308", "author": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "body": "Any progress on this? This kind of a basic function of an audio player.", "updateAuthor": { "name": "bradleycorn", "key": "bradleycorn", "displayName": "Brad Ball", "active": true, "timeZone": "America/New_York" }, "created": "2016-01-12T16:09:45.000+0000", "updated": "2016-01-12T16:09:45.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }