{ "id": "86406", "key": "TIMOB-7629", "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": "2017-07-10T22:23:32.000+0000", "created": "2012-02-13T10:18:56.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "15152", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "86405", "key": "TIMOB-7628", "fields": { "summary": "Android: VideoPlayer doesn't clip properly ", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T22:23:32.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": "The video player content does not respect the borderRadius setting. If the video content is scaled such that it doesn't cover the corners, you can see the radiused borders. However, if the video is scaled to fill the view, it fills to the corners and ignores the radius.\r\n\r\nOn iOS, if borderRadius is specified, the corners are also clipped to fit the radius. \r\n\r\nExpected behavior: video should be clipped such that the borders are visible.\r\n\r\nTest case:\r\n\r\n{code}\r\nvar vidWin = Titanium.UI.createWindow({\r\n\ttitle : 'Video View Test',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar activeMovie = Titanium.Media.createVideoPlayer({\r\n\ttop : 0,\r\n\tautoplay : true,\r\n\tbackgroundColor : 'red',\r\n\theight : 300,\r\n\twidth : 300,\r\n\tborderRadius : 20,\r\n\tborderWidth : 2,\r\n\tborderColor : 'blue',\r\n\tmediaControlStyle : Titanium.Media.VIDEO_CONTROL_EMBEDDED,\r\n\tscalingMode : Titanium.Media.VIDEO_SCALING_MODE_FILL\r\n});\r\n\r\nactiveMovie.url = 'movie.mp4';\r\nif(activeMovie.fullscreen === true) {\r\n\tactiveMovie.show();\r\n} else {\r\n\tvidWin.add(activeMovie);\r\n}\r\n\r\nvidWin.open();\r\n{code}\r\n\r\nNote that when running this on Android, the video fills the view completely and no borders are visible.\r\n\r\nOn iOS, the video is cropped to a rounded square, with a blue border. \r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: VideoPlayer doesn't crop correctly when borderRadius is set", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "241540", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nIt works fine on IOS iphone simulator", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-11T10:56:37.000+0000", "updated": "2013-03-11T10:56:37.000+0000" }, { "id": "423833", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T22:23:32.000+0000", "updated": "2017-07-10T22:23:32.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }