{ "id": "82349", "key": "TIMOB-16102", "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": "2016-05-14T19:46:38.000+0000", "created": "2011-11-04T13:30:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "34048", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "104935", "key": "TIMOB-13046", "fields": { "summary": "Android: Audioplayer progress not fired when playing local media", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-14T19:47:04.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": "The \"progress\" event is not firing on the AudioPlayer object. This event fires in 1.8.x versions of Titanium Mobile, but not in 1.7.3 through 1.7.5.", "attachment": [], "flagged": false, "summary": "iOS: AudioPlayer progress event not firing", "creator": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "osx ios 1.7.3 1.7.4 1.7.5", "comment": { "comments": [ { "id": "171541", "author": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please cancel this report. The issue is in some related code, but not in the event firing section. Sorry.", "updateAuthor": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-04T13:34:59.000+0000", "updated": "2011-11-04T13:34:59.000+0000" }, { "id": "171555", "author": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Maybe don't cancel it -- the issue is that the progress event is firing a different value between 1.7.x and 1.8.x.\r\n\r\nIn 1.7.5, it fires e.progress = 1.0 to mean one second has passed.\r\nIn 1.8.x, it fires e.progress = 1000.0 to mean one second has passed.\r\n", "updateAuthor": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-04T13:59:15.000+0000", "updated": "2011-11-04T13:59:15.000+0000" }, { "id": "177182", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket, Mark.\r\n\r\nIn order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], and add any missing information.\r\n\r\nFurthermore, a test case must run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section.\r\n\r\nI will close this for now. Please reopen it once it is complete, and I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-26T04:35:00.000+0000", "updated": "2011-12-26T04:35:00.000+0000" }, { "id": "177680", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Paul,\r\n\r\nI came to open a ticket about this very issue and found this one.\r\n\r\n\r\n\r\n\r\nThe following were logged from inside the 'progress' event handler of an AudioPlayer:\r\n\r\n{noformat}\r\nAndroidMediaPlayer.addEventListener('progress',function(e){\r\n Ti.API.info('EAC LOGGING: Progress: '+e.progress);\r\n});\r\n\r\n{noformat}\r\n\r\n1.8.0.1 V8 Streamed MP3\r\n12-29 20:10:57.580: I/TiAPI(432): EAC LOGGING: Progress: 575\r\n12-29 20:10:58.570: I/TiAPI(432): EAC LOGGING: Progress: 1019\r\n\r\n1.8.0.1 Rhino Streamed MP3\r\n12-29 21:12:31.428: I/TiAPI(1577): EAC LOGGING: Progress: 549\r\n12-29 21:12:32.358: I/TiAPI(1577): EAC LOGGING: Progress: 967\r\n\r\n1.7.5 Android Streamed MP3\r\n12-29 21:23:15.278: I/TiAPI(5561): (kroll$3) [2791,35513] EAC LOGGING: Progress: 0.549\r\n12-29 21:23:16.267: I/TiAPI(5561): (kroll$3) [998,36511] EAC LOGGING: Progress: 1.019\r\n\r\niOS suffers from a similar problem with currentPlayBack time and the VideoPlayer.\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-29T18:37:47.000+0000", "updated": "2011-12-29T19:00:07.000+0000" }, { "id": "177681", "author": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nSorry, but if you close out bugs because the (volunteer) reporter didn't write a complete test case for you, I think you're doing your users a disservice. A bug is still a bug, whether or not the person reporting it does as complete a job as you'd like.\r\n\r\nI'm a programmer, so I completely understand that it's impossible (and a waste of time) to try to fix items that can't be duplicated or explained, but stuff like this is very cut-and-dried. As a programmer, I'd be able to fix this in a single line of code. One version of the sdk is reporting seconds, the other is reporting milliseconds. Not rocket surgery.\r\n\r\nMark", "updateAuthor": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T18:49:58.000+0000", "updated": "2011-12-29T18:49:58.000+0000" }, { "id": "177683", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Mark,\r\n\r\nThese values are reminiscent of the 1.6.0 problems where the Android and iOS values were not the same, requiring platform specific mathematics to even them out.\r\n\r\nI'm with you in that this is a quick code fix on our end. But if I hack in a fix for this, I can't easily just compile against 1.7.5 for comparison any more.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2011-12-29T19:04:17.000+0000", "updated": "2011-12-29T19:04:17.000+0000" }, { "id": "177684", "author": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Well, it's a simple point. It's now broken. It either needs to be fixed, or documented that 1.8 is different than 1.7 and that anyone using this API needs to change their code or expect really screwy results.", "updateAuthor": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-29T19:17:24.000+0000", "updated": "2011-12-29T19:17:24.000+0000" }, { "id": "177699", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Mark\r\n\r\nI understand that the process may be frustrating for senior community members who are familiar with the bug reporting process of numerous other projects. However, I hope you can appreciate that Titanium has a very large userbase with a wide range of experience levels. We accept and appreciate reports from our whole community but, as a consequence, tickets are continually being raised with differing levels of accuracy.\r\n\r\nThis ticket is a good example. The original problem was, \"AudioPlayer progress event not firing\", with no test case provided. It could take considerable time to prove this, particularly if there are other factors involved; either a combination of Titanium object properties, contexts, or some user coding issue.\r\n\r\nIt was good of you to update the ticket, but many people do not. We just don't have the resources to chase bugs that may or may not exist. Also, as [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] explains, a test case can often reveal the cause of a problem when it's a user issue.\r\n\r\nNote that, in this instance, I have raised tickets TIMOB-6941 and TIMOB-6942 to address the remaining issues you describe. Thank you for your understanding and patience with the process in future.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-30T05:39:15.000+0000", "updated": "2011-12-30T05:39:15.000+0000" }, { "id": "177700", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thank you for your update, Stephen - it was very helpful! :)", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-30T05:41:59.000+0000", "updated": "2011-12-30T05:41:59.000+0000" }, { "id": "177703", "author": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Paul -- I understand. This ticket isn't about what I originally reported, you're right. I should have opened a separate ticket for this to avoid confusion. Sorry.", "updateAuthor": { "name": "markb@mantisbible.com", "key": "markb@mantisbible.com", "displayName": "Mark Burggraf", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-30T08:43:31.000+0000", "updated": "2011-12-30T08:43:31.000+0000" }, { "id": "384123", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7974 \r\n\r\n\r\nDemo code:\r\n\r\n{code:javascript}\r\nTitanium.UI.setBackgroundColor('#fff');\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar anAudioPlayer = Ti.Media.createAudioPlayer({\r\n\turl : '' //Add local or remote file\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n title: 'Start/Stop',\r\n top: 10,\r\n width: 100,\r\n height: 50\r\n});\r\nvar playing = false;\r\nbutton.addEventListener('click',function(e)\r\n{\r\n\tif (playing != true) { \r\n \t\tanAudioPlayer.start();\r\n \t} else {\r\n \t\tanAudioPlayer.pause();\r\n \t}\r\n \tplaying = !playing;\r\n});\r\n\r\n\r\nanAudioPlayer.start();\r\n\r\n \r\nanAudioPlayer.addEventListener('progress', function(e) {\r\n\talert('EAC LOGGING: Progress: ' + e.progress);\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-27T21:56:09.000+0000", "updated": "2016-04-27T21:56:20.000+0000" }, { "id": "385727", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Failing review. The provided test case that did not work did not work beause the event listener was placed after the audio player starts. [Fixing it](https://gist.github.com/hansemannn/5c9c5d40ba175233783c623f68e54ac9) makes the player work properly. Regarding the seconds/milliseconds discussion: The docs state milliseconds as the right measurement for 5+ years now. If anyone has objections, please let me know, but as this works, we should not attempt core-changes here.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-05-14T19:46:19.000+0000", "updated": "2016-05-14T19:46:19.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }