{ "id": "86405", "key": "TIMOB-7628", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T19:49:17.000+0000", "created": "2012-02-13T10:18:13.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" }, "inwardIssue": { "id": "86406", "key": "TIMOB-7629", "fields": { "summary": "Android: VideoPlayer doesn't crop correctly when borderRadius is set", "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": "2020-01-09T19:49:17.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": "When running with scalingMode === VIDEO_SCALING_ASPECT_FILL, the video player content does not respect the `width` value set on the control, but scales to fit the height of the video player while maintaining aspect ratio, overflowing the sides of the control. In this mode, neither background color or border settings appears to be respected.\r\n\r\nWhen running with scalingMode === VIDEO_SCALING_MODE_FILL, the entire video player area is used, and no borders are visible. I believe the video view should be accounting for the width of the borders, here. \r\n\r\nFinally, when running with scalingMode === VIDEO_SCALING_ASPECT_FIT with a square view and a wide-screen video clip, the borders are drawn everywhere except the edges of the picture, where the video overwrites the border.\r\n\r\nOn iOS, if borderRadius is specified, the corners are also clipped to fit the radius. Will open a separate ticket for this as it may be a bigger can of worms.\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_ASPECT_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 width of the screen instead of being cropped to the width of the view (although, oddly, the on-screen video controls appear to be cropped to the width of the view). \r\n\r\nOn iOS, the video is cropped to a rounded square, with a blue border. \r\n\r\nSwap in the other scaling modes to try the other effects.", "attachment": [], "flagged": false, "summary": "Android: VideoPlayer doesn't clip properly ", "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": "240684", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "\r\n\r\nThe problem reproduce with release 3.0.2 and master release 3.1.0\r\n\r\ntested on\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 \r\nTitanium SDK version: 3.0.2 \r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\nAndroid Emulator: Android SDK version: 2.2\r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-05T10:33:01.000+0000", "updated": "2013-03-05T10:34:34.000+0000" }, { "id": "323434", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "The problem with VIDEO_SCALING_ASPECT_FILL is apparent in SDK 3.2.3 as well. VideoPlayer needs to respect it's given boundries when fullscreen is false.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2014-09-12T21:14:02.000+0000", "updated": "2014-09-12T21:14:02.000+0000" }, { "id": "453590", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T19:49:17.000+0000", "updated": "2020-01-09T19:49:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }