{ "id": "171431", "key": "TIMOB-25916", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-15T07:43:21.000+0000", "created": "2018-03-30T11:09:38.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-06-21T16:43:49.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": "When I try to change the property \"scalingMode\" of Ti.UI.VideoPlayer, the player ignores any constant and defaults to Ti.Media.VIDEO_SCALING_RESIZE (\"AVLayerVideoGravityResize\").\r\nThis happens both at creation time and at runtime.\r\n\r\nTest case:\r\n\r\nindex.js\r\n{code:js}\r\n$.index.open();\r\n{code}\r\n\r\nindex.xml\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.tss\r\n{code:tss}\r\n\".container\": {\r\n\tbackgroundColor:\"#333\"\r\n}\r\n\".video\": {\r\n\twidth: 200,\r\n\theight: 300,\r\n\tscalingMode: Ti.Media.VIDEO_SCALING_RESIZE_ASPECT_FILL,\r\n\turl: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',\r\n}\r\n{code}\r\n\r\nExpected result: the video is cropped to fill the defined size, keeping the aspect ratio.\r\nActual result: the video is resized and stretched to fill the defined size.", "attachment": [ { "id": "65012", "filename": "Screenshot 2018.03.30 13.04.51.png", "author": { "name": "ajonus", "key": "ajonus", "displayName": "Andrea Jonus", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-03-30T11:09:02.000+0000", "size": 1016978, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Ti.UI.VideoPlayer ignores changes to the \"scalingMode\" property", "creator": { "name": "ajonus", "key": "ajonus", "displayName": "Andrea Jonus", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "ajonus", "key": "ajonus", "displayName": "Andrea Jonus", "active": true, "timeZone": "Europe/Rome" }, "environment": "iOS 11\r\nTitanium SDK 7.1.0\r\nAlloy 1.10.10", "comment": { "comments": [ { "id": "436132", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Community PR (thanks [~ajonus]!): https://github.com/appcelerator/titanium_mobile/pull/9973\r\nTest-Case: See above", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-03-30T13:03:28.000+0000", "updated": "2018-03-30T13:03:28.000+0000" }, { "id": "438595", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Fix can be seen in SDK Version: {{7.3.0.v20180618182516}}\r\n\r\n*FR (Passed) Test Steps:*\r\n# Created an application using the code above \r\n# Ran the program\r\n# Pressed play on the Video Player\r\n# Able to see that video was cropped to fill the defined size, keeping the aspect ratio\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\niphone 6 11.2 emulator\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13\r\nNode.js Version: 8.9.1\r\nXcode 9.2\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-21T16:43:35.000+0000", "updated": "2018-06-21T16:43:35.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }