{ "id": "172376", "key": "TIMOB-26436", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-10-19T18:41:03.000+0000", "created": "2018-10-01T11:48:50.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-10-19T18:41:07.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": "Since 7.0.0 VideoPlayer on iOS treats time in seconds instead of milliseconds.\r\nAffected properties: \"currentPlaybackTime\", \"duration\" (probably also \"playableDuration\" and \"endPlaybackTime\"), events: \"durationavailable\".\r\n", "attachment": [], "flagged": false, "summary": "iOS: VIdeoPlayer time in seconds", "creator": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "environment": null, "closedSprints": [ { "id": 1084, "state": "closed", "name": "2018 Sprint 21", "startDate": "2018-10-07T23:32:40.560Z", "endDate": "2018-10-21T23:32:00.000Z", "completeDate": "2018-10-21T23:19:05.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "442230", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you please provide a standalone code that displays the issue? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-10-02T21:43:48.000+0000", "updated": "2018-10-02T21:43:48.000+0000" }, { "id": "442242", "author": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "updateAuthor": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "created": "2018-10-03T08:51:41.000+0000", "updated": "2018-10-03T08:51:41.000+0000" }, { "id": "442269", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In 7.0.0, we have moved from MPMoviePlayerController to latest api AVPlayerViewController given by apple. Which was a huge change. In that I guess we missed this. I'll look in this. Thanks for reporting!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-04T01:48:57.000+0000", "updated": "2018-10-05T07:57:15.000+0000" }, { "id": "442326", "author": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "body": "bq. In 7.0.0, we have moved from MPMoviePlayerController to latest api AVPlayerViewController given by apple. Which was a huge change. In that I guess we missed this. I'll look in this. Thanks for reporting!\r\nYeah, I've been watching TIMOB-19040 since 2016 :-)\r\n\r\nAlso documentation on VideoPlayer is broken: you've labeled many properties as deprecated-removed, but they are still exists on Android.\r\nAnd there was no need to remove (even no need to rename) Titanium.Media.VIDEO_SCALING_* properties: new ones have same meaning as old before, but currently I have to use different values for iOS and Android (and new have \"string\" type, where old was \"number\"). It will be nice to have old \"VIDEO_SCALING_*\" back on iOS.\r\n", "updateAuthor": { "name": "s.volkov", "key": "s.volkov", "displayName": "Sergey Volkov", "active": true, "timeZone": "Europe/Moscow" }, "created": "2018-10-05T08:25:24.000+0000", "updated": "2018-10-05T08:25:24.000+0000" }, { "id": "442381", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR - https://github.com/appcelerator/titanium_mobile/pull/10373\r\nTest Case (Time in log should be in milliseconds )- \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\nvar player = Ti.Media.createVideoPlayer({\r\n url: 'http://techslides.com/demos/sample-videos/small.mp4',\r\n showsControls: false,\r\n autoplay: true,\r\n height: 200\r\n});\r\nwin.add(player);\r\n \r\nfunction onDurationAvailable(e) {\r\n console.log(e.type, 'e.duration', e.duration);\r\n console.log('player.duration', e.source.duration);\r\n}\r\nplayer.addEventListener('durationavailable', onDurationAvailable);\r\n \r\nvar i = 0;\r\nvar interval = setInterval(function() {\r\n if (i++ > 10) {\r\n clearInterval(interval);\r\n }\r\n console.log(player.currentPlaybackTime);\r\n console.log('playableDuration is' +player.playableDuration);\r\n}, 500);\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-08T04:06:48.000+0000", "updated": "2018-10-08T04:06:48.000+0000" }, { "id": "442382", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~s.volkov] For broken doc and Scaling property I will file a different ticket and will check what can be done. Or if you wish you can file a bug. I'll go from there. Thanks!", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-08T04:09:22.000+0000", "updated": "2018-10-08T04:09:22.000+0000" }, { "id": "442468", "author": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "body": "FR done.", "updateAuthor": { "name": "kmahalingam", "key": "kmahalingam", "displayName": "Keerthi Mahalingam", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-10-09T22:05:41.000+0000", "updated": "2018-10-09T22:05:41.000+0000" }, { "id": "442561", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Closing since FR was done.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-10-12T15:54:01.000+0000", "updated": "2018-10-12T15:54:01.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }