{ "id": "172913", "key": "TIMOB-26765", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2019-11-01T13:25:56.000+0000", "created": "2019-01-25T16:06:31.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "issuelinks": [], "assignee": null, "updated": "2019-11-01T13:25:56.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": "Hello! \r\nIn my project, there is a video player. but only text get rotating, not the video player gets rotating.\r\nLook my screenshot, text: Hi I am your table\r\nGet rotated in the second half but the video contains \"9\" number not get rotated in the second half. The first half is 0-degree rotation & the second half is the 180-degree rotation.\r\n\r\nTest Code:\r\n{code}\r\nexports.dummy=function(win)\r\n{\r\n\r\n\tmainUI = function(vwWelcome) {\r\n\t\t\r\n\t\tvar lblIam = Ti.UI.createLabel({\r\n\r\n\t\t\ttop : \"0dp\",\r\n\t\t\tcolor : '#f7f7f7',\r\n\t\t\tfont : {\r\n\t\t\t\tfontSize : \"40dp\"\r\n\t\t\t\t//fontFamily : require('main').FuturaStdBook,\r\n\t\t\t},\r\n\t\t\ttext : \"Hi, I’m your table for today\",\r\n\t\t\ttextAlign : Ti.UI.TEXT_ALIGNMENT_CENTER,\r\n\t\t\topacity : 1 // for now\r\n\r\n\t\t});\r\n\r\n\t\tvwWelcome.add(lblIam); \r\n\r\n\t\tvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n\t\t\t//top : 2,\r\n\t\t\t\r\n\t\t\tautoplay : true,\r\n\t\t\t//backgroundColor : 'blue',\r\n\t\t\theight : Ti.UI.FILL,\r\n\t\t\twidth : Ti.UI.FILL,\r\n\t\t\t//rotation:180,\r\n\t\t\t//fullscreen:false,\r\n\t\t\t//ControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n\t\t\tscalingMode : Titanium.Media.VIDEO_SCALING_RESIZE_ASPECT_FILL\r\n\t\t});\r\n\r\n\t\tvideoPlayer.url = '/video/Comp 1 (1).mp4';\r\n\r\n\t\tvwWelcome.add(videoPlayer);\r\n\t\tvideoPlayer = null;\r\n\r\n\t};\r\n\r\n\tvwToplayer = Ti.UI.createView({\r\n\t\theight : \"200dp\",\r\n\r\n\t\twidth : Ti.UI.FILL,\r\n\t\tbackgroundColor : '#000000',\r\n\t\ttop : \"10dp\",\r\n\t\trotation:0\r\n\r\n\t});\r\n\r\n\twin.add(vwToplayer);\r\n\r\n\tvwBottomlayer = Ti.UI.createView({\r\n\t\theight : \"183dp\",\r\n\r\n\t\twidth : Ti.UI.FILL,\r\n\t\tbackgroundColor : '#000000',\r\n\t\tbottom: \"10dp\",\r\n\t\trotation:180\r\n\r\n\t});\r\n\r\n\twin.add(vwBottomlayer);\r\n\t\r\n\r\n\tsetTimeout(function() {\r\n\r\n\t\tif (vwBottomlayer !== null && vwToplayer !== null) {\r\n\r\n\t\t\tmainUI(vwBottomlayer);\r\n\t\t\tmainUI(vwToplayer);\r\n\r\n\t\t\t//slidefortableConnect(vwBottomlayer);\r\n\t\t\t//slidefortableConnect(vwToplayer);\r\n\r\n\t\t}\r\n\r\n\t}, 1000); \r\n\r\n\t\t\t\r\n\r\n};\r\n{code}\r\n\r\nTest Environment:\r\n{code}\r\nOperating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 17091956736\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.5.0.GA\r\nAndroid Devices : Samsung j7 (Android 8.0)\r\n{code}\r\n\r\nThanks \r\n\r\n", "attachment": [ { "id": "66108", "filename": "Screenshot_20190125-214049.jpg", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2019-01-25T16:01:16.000+0000", "size": 86641, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android : videoPlayer rotation not working", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 17091956736\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.5.0.GA", "comment": { "comments": [ { "id": "447668", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's been a few years, but I remember that you can't reliably rotate Android's native views such as the Java [VideoView|https://developer.android.com/reference/android/widget/VideoView] and [EditText|https://developer.android.com/reference/android/widget/EditText] via the view's native {{rotate()}} method like you can on iOS. Your only option is to rotate the entire device from portrait to landscape (or vice-versa) and let the Android OS rotate the entire activity window for you.\r\n\r\nThis is especially true for the Java [VideoView|https://developer.android.com/reference/android/widget/VideoView] since it is a [SurfaceView|https://developer.android.com/reference/android/view/SurfaceView.html], which is rendered on a separate thread and composited by the Android OS into the app window's UI (which is known to have z-ordering bugs on Google's end).\r\n\r\nBottom line, don't do this. Don't use a fixed orientation window and and let the OS do this for you via device orientation changes.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-12T20:40:16.000+0000", "updated": "2019-04-12T20:40:16.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }