{ "id": "64796", "key": "TIMOB-3725", "fields": { "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true }, "parent": { "id": "64759", "key": "TIMOB-3690", "fields": { "summary": "Android: Confirm Sprint 15 Issues", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-04T13:03:50.000+0000", "created": "2011-04-26T09:49:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [ { "id": "10287", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "62662", "key": "TIMOB-2030", "fields": { "summary": "Android: Implement VideoPlayer scalingMode", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-04T13:03:50.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": null, "attachment": [], "flagged": false, "summary": "Confirm TIMOB-2030 (video player scaling mode)", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "132834", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Because we have a 10MB upload limit, I couldn't attach my 11MB sample video I used for my test. You can get it [here|http://dl.dropbox.com/u/3756445/movie.mp4].", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-27T03:34:32.000+0000", "updated": "2011-04-27T03:34:32.000+0000" }, { "id": "132835", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "When fooling around with the KitchenSink video's options, I didn't see any differences. I created my own app (see below, plus movie.mp4 attached here) which used a movie shot at 640x480 -- still no visual difference with different scaling modes. (Given the 1.3 ratio of the movie and the 1.67 ratio of the screen, I expected one of these modes to show something different than the others.)\n\n{code:title=app.js}\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({ \n title:'Test',\n backgroundColor:'#fff',\n\tfullscreen: false,\n\tlayout: 'vertical',\n\texitOnClose: true\n});\n\nvar options = [\n\t{name: 'VIDEO_SCALING_ASPECT_FILL', value: Ti.Media.VIDEO_SCALING_ASPECT_FILL},\n\t{name: 'VIDEO_SCALING_ASPECT_FIT', value: Ti.Media.VIDEO_SCALING_ASPECT_FIT},\n\t{name: 'VIDEO_SCALING_MODE_FILL', value: Ti.Media.VIDEO_SCALING_MODE_FILL}\n];\n\nfunction clickFactory(scalingMode) {\n\treturn function() {\n\t\tvar w = Ti.UI.createWindow({\n\t\t\tfullscreen: true,\n\t\t\turl: 'win.js',\n\t\t\tscalingMode: scalingMode,\n\t\t\tbackgroundColor: 'green'\n\t\t});\n\t\tw.open();\n\t};\n}\n\n\nfor (var i = 0; i < options.length; i++) {\n\tvar btn = Ti.UI.createButton({\n\t\ttitle: options[i].name,\n\t\ttop: 10, width: 'auto', height: 'auto'\n\t});\n\tbtn.addEventListener('click', clickFactory(options[i].value));\n\twin.add(btn);\n}\n\nwin.open();\n{code}\n\n{code:title=win.js}\n\nvar win = Ti.UI.currentWindow;\nTi.API.info('SCALING MODE ' + win.scalingMode);\nvar options = {\n\tscalingMode: win.scalingMode,\n\turl: 'movie.mp4'\n};\nfunction closeWin(){win.close();}\nvar player = Ti.Media.createVideoPlayer(options);\nplayer.addEventListener('complete', closeWin);\n\n\nwin.addEventListener('close', function() {\n\tplayer.stop();\n});\n\nplayer.play();\n{code}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-27T03:35:19.000+0000", "updated": "2011-04-27T03:35:19.000+0000" }, { "id": "132837", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "BTW testing with Titanium Mobile 1.7.0, 6b80fd9 on HTC Desire, Android 2.2", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-27T03:42:26.000+0000", "updated": "2011-04-27T03:42:26.000+0000" }, { "id": "132847", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I used the basketball video when testing and it worked at the time. Will have to give it another look.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-27T07:49:53.000+0000", "updated": "2011-04-27T07:49:53.000+0000" }, { "id": "132850", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Yeah I started with the b-ball video. You know, knowing HTC, I wouldn't be that surprised if there is a custom video player doing something wacky.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-27T08:18:32.000+0000", "updated": "2011-04-27T08:18:32.000+0000" }, { "id": "132853", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "I ran my test code with the basketball video on an emulator (to remove possible HTC weirdness from the equation). Same results. In fact, I used DDMS to take a snapshot of the final frame in each of the three test cases. The resulting three .PNG files are identical -- even with the same MD5 hash.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-27T09:04:03.000+0000", "updated": "2011-04-27T09:04:03.000+0000" }, { "id": "133164", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix has been pushed. Ready for testing again.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-04T12:10:03.000+0000", "updated": "2011-05-04T12:10:03.000+0000" }, { "id": "133168", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Titanium Mobile 1.7.0 fbd779feb1\nHTC Desire, Android 2.2\n\nI couldn't really tell with the KS video (dunk fail), so I switched to a personal video which is 640x480 -- then it was very obvious. works!", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-05-04T13:03:50.000+0000", "updated": "2011-05-04T13:03:50.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }