{ "id": "63434", "key": "TIMOB-2802", "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": "12087", "description": "", "name": "Sprint 2011-47", "archived": true, "released": true, "releaseDate": "2011-11-28" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T16:27:36.000+0000", "created": "2011-04-15T03:29:55.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "deprecated-1.6.0", "deprecated-1.8.0", "module_media", "qe-testadded" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [ { "id": "14847", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85652", "key": "TIMOB-7457", "fields": { "summary": "Android: Titanium.Media.VideoPlayer: movieControlStyle not deprecated", "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": "Trivial", "id": "5" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T06:07:08.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": "{html}

It seems that movieControlStyle is NOT depricated and that\r\nmediaControlStyle does not work within\r\nTitanium.Media.VideoPlayer.

\r\n

Tested on iOS with 1.4.2, 1.5.1 and 1.6

\r\n

This works:

\r\n
\r\nvar win = Titanium.UI.createWindow({
\r\n
\r\n\r\n\r\n
\r\n
\r\n
\r\n    title: 'Test'\r\n    });\r\n
\r\n
\r\n\r\n\r\n
\r\nvar activeMovie = Titanium.Media.createVideoPlayer\r\n\r\n
\r\n
\r\n({\r\n    sourceType: Ti.Media.VIDEO_SOURCE_TYPE_FILE,\r\n    url: 'movie.mp4',\r\n    backgroundColor:'#000',\r\nscalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\nmovieControlStyle: Titanium.Media.VIDEO_CONTROL_NONE\r\n});\r\n
\r\n
\r\n\r\n\r\n
\r\nwin.add(activeMovie);\r\n\r\n
\r\nwin.open();\r\n
\r\n

This doesn't:

\r\n
\r\nvar win = Titanium.UI.createWindow({
\r\n
\r\n\r\n\r\n
\r\n
\r\n
\r\n    title: 'Test'\r\n    });\r\n
\r\n
\r\n\r\n\r\n
\r\nvar activeMovie = Titanium.Media.createVideoPlayer\r\n\r\n
\r\n
\r\n({\r\n    sourceType: Ti.Media.VIDEO_SOURCE_TYPE_FILE,\r\n    url: 'movie.mp4',\r\n    backgroundColor:'#000',\r\nscalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\nmediaControlStyle: Titanium.Media.VIDEO_CONTROL_NONE\r\n});\r\n
\r\n
\r\n\r\n\r\n
\r\nwin.add(activeMovie);\r\n\r\n
\r\nwin.open();\r\n
{html}", "attachment": [], "flagged": false, "summary": "iOS: movieControlStyle Not Deprecated, mediaControlStyle doesn't work", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129449", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

One property is for 3.1.x, one property is for later iOS. Need\nto make sure that instead of cross-translating (which causes\nissues) we ignore and print deprecation warnings.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:29:55.000+0000", "updated": "2011-04-15T03:29:55.000+0000" }, { "id": "172902", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Jeff originally did the documentation for this (https://github.com/appcelerator/titanium_mobile/blame/1_7_X/apidoc/Titanium/Media/VideoPlayer.tdoc) and he calls the newer property {{mediaControlStyle}}. If I grep our iOS code I don't see anything starting with \"mediaControl\", but I do find {{movieControlMode}} and {{movieControlStyle}}.\r\n\r\nWhen Don implemented the play/pause/etc control for Android version of our VideoPlayer earlier this year, he followed the documentation (so {{mediaControlStyle}}).\r\n\r\nSo we need to agree on which is right for the non-deprecated property: {{mediaControlStyle}} or {{movieControlStyle}}.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-16T07:56:40.000+0000", "updated": "2011-11-16T07:58:41.000+0000" }, { "id": "173565", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "pull request pending.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-21T14:30:58.000+0000", "updated": "2011-11-21T14:30:58.000+0000" }, { "id": "174126", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code and docs reviewed and tested. New code works, old code gives warnings but still work.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-28T16:08:48.000+0000", "updated": "2011-11-28T16:08:48.000+0000" }, { "id": "175224", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified deprecation of movieControlStyle on:\r\n\r\nOS: Mac OS X Lion\r\nTitanium Studio, build: 1.0.7.201112061404\r\nSDK build: 1.8.0.1.v20111207112258\r\nDevice: iphone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-07T14:28:12.000+0000", "updated": "2011-12-07T14:28:12.000+0000" }, { "id": "175585", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to tag for deprecation in 1.8.0.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-09T13:48:06.000+0000", "updated": "2011-12-09T13:48:06.000+0000" }, { "id": "178253", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T16:27:13.000+0000", "updated": "2012-01-05T16:27:13.000+0000" }, { "id": "283475", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:07:08.000+0000", "updated": "2013-12-10T06:07:08.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }