{ "id": "171775", "key": "TIMOB-26127", "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": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-24T01:37:59.000+0000", "created": "2018-06-10T10:28:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "camera", "media" ], "versions": [ { "id": "20102", "name": "Release 7.1.1", "archived": false, "released": true, "releaseDate": "2018-05-02" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-08-24T01:38:02.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": "Can't changer the quality of media camera because Titanium media video qualities is undefined\r\n\r\n{quote}\tTi.API.info(\"Titanium.Media.QUALITY_HIGH \" + Titanium.Media.QUALITY_HIGH);\r\n\tTi.API.info(\"Titanium.Media.QUALITY_MEDIUM \" + Titanium.Media.QUALITY_MEDIUM);\r\n\tTi.API.info(\"Titanium.Media.QUALITY_LOW \" + Titanium.Media.QUALITY_LOW);\r\n\tTi.API.info(\"Titanium.Media.QUALITY_640x480 \" + Titanium.Media.QUALITY_640x480);\r\n\tTi.API.info(\"Titanium.Media.QUALITY_IFRAME_960x540 \" + Titanium.Media.QUALITY_IFRAME_960x540);\r\n\tTi.API.info(\"Titanium.Media.QUALITY_IFRAME_1280x720 \" + Titanium.Media.QUALITY_IFRAME_1280x720);{quote}\r\n\r\nLogs ==> \r\n\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_HIGH undefined\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_MEDIUM undefined\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_LOW undefined\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_640x480 undefined\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_IFRAME_960x540 undefined\r\n06-10 10:20:45.406 30754 30754 I TiAPI : Titanium.Media.QUALITY_IFRAME_1280x720 undefined\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Video Quality undefined", "creator": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "subtasks": [], "reporter": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "environment": "titanium SDK 7.1.1\r\nandroid Pixel_2_API_26_2", "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438269", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "As of the official docs, the QUALITY_* constants are iOS only, see [QUALITY_HIGH|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media-property-QUALITY_HIGH] for reference.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-10T13:22:19.000+0000", "updated": "2018-06-10T13:22:19.000+0000" }, { "id": "438384", "author": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "body": "But in official doc is not precise here see [videoQuality|https://docs.appcelerator.com/platform/latest/#!/api/CameraOptionsType-property-videoQuality]", "updateAuthor": { "name": "saidCh", "key": "saidch", "displayName": "said chaouche", "active": true, "timeZone": "Africa/Algiers" }, "created": "2018-06-13T11:40:00.000+0000", "updated": "2018-06-13T11:40:00.000+0000" }, { "id": "438385", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "You are right! And looking into the code, they should also be there. It was added in TIMOB-2122 in 5.4.0. Reopening to be validated. \r\n\r\n[~ybanev] Valid constants are {{VIDEO_QUALITY_HIGH}} and {{VIDEO_QUALITY_LOW}} on Android, which should also be changed in the docs. Also: It seems like the underlaying native {{CamcorderProfile}} Android API also allows a few more constants that could be exposed for parity, see the [native docs|https://developer.android.com/reference/android/media/CamcorderProfile] for reference.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-13T12:18:34.000+0000", "updated": "2018-06-13T12:21:54.000+0000" }, { "id": "438392", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/10106", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2018-06-13T15:17:00.000+0000", "updated": "2018-06-13T15:17:00.000+0000" }, { "id": "439350", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Verified fix in SDK Version: {{7.4.0.v20180717131401}}\r\n\r\n*FR Passed (Test Steps):*\r\n# Created a titanium Application\r\n# Added the following code in to the {{app.js}}\r\n{code:java}\r\nTi.API.info(\"Titanium.Media.QUALITY_HIGH \" + Titanium.Media.QUALITY_HIGH);\r\nTi.API.info(\"Titanium.Media.QUALITY_MEDIUM \" + Titanium.Media.QUALITY_MEDIUM);\r\nTi.API.info(\"Titanium.Media.QUALITY_LOW \" + Titanium.Media.QUALITY_LOW);\r\nTi.API.info(\"Titanium.Media.QUALITY_640x480 \" + Titanium.Media.QUALITY_640x480);\r\nTi.API.info(\"Titanium.Media.QUALITY_IFRAME_960x540 \" + Titanium.Media.QUALITY_IFRAME_960x540);\r\nTi.API.info(\"Titanium.Media.QUALITY_IFRAME_1280x720 \" + Titanium.Media.QUALITY_IFRAME_1280x720);\r\n{code}\r\n# Ran the program\r\n# Able to see the following \r\n{code:java}\r\n[INFO] : Titanium.Media.QUALITY_HIGH 1\r\n[INFO] : Titanium.Media.QUALITY_MEDIUM undefined\r\n[INFO] : Titanium.Media.QUALITY_LOW 0\r\n[INFO] : Titanium.Media.QUALITY_640x480 4\r\n[INFO] : Titanium.Media.QUALITY_IFRAME_960x540 undefined\r\n[INFO] : Titanium.Media.QUALITY_IFRAME_1280x720 5\r\n{code}\r\n\r\n*Note:* For {{Titanium.Media.QUALITY_MEDIUM}} and {{Titanium.Media.QUALITY_IFRAME_960x540}} do not have a direct Android counterpart, so return value undefined is expected as mentioned in the PR: https://github.com/appcelerator/titanium_mobile/pull/10106\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nAPPC CLI: 7.0.4\r\nNexus 6p Emulator (8.0)\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-07-19T19:55:25.000+0000", "updated": "2018-07-19T19:55:25.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }