{ "id": "67458", "key": "TIMOB-4331", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-03-21T16:43:05.000+0000", "created": "2011-06-06T13:29:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "exalture" ], "versions": [], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T21:29:31.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": "You can add a label to a videoPlayer, but removing it does not work. See the example below. \r\n\r\nStep 1: Run the code below\r\nStep 2: notice that the red 'Loading...' text does not get removed.\r\nStep 3: if you set visible false on the label, it will disappear.\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Titanium.UI.createWindow();\r\nvar activeMovie = Titanium.Media.createVideoPlayer({\r\n contentURL: 'http://theatercrew.com/sample.mp4',\r\n\tautoplay: true\r\n});\r\nloadingLabel = Titanium.UI.createLabel({\r\n text:\"Loading...\",\r\n color: \"#f00\",\r\n width: \"auto\",\r\n height: \"auto\"\r\n});\r\nactiveMovie.add(loadingLabel);\r\nwin.open();\r\nactiveMovie.play();\r\n\r\nactiveMovie.addEventListener('load',function(){\r\n Ti.API.info('activeMovie.addEventListener(\\'load\\',function(){');\r\n // ---- remove does not work on android ------\r\n activeMovie.remove(loadingLabel);\r\n // loadingLabel.visible = false;\r\n});\r\n{code}\r\n\r\nh3. Workaround\r\nloadingLabel.visible = false;\r\n\r\nh3. Tested With\r\nTiSDK 1.7.0.RC1\r\nAndroid 2.3\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-888114\r\n", "attachment": [], "flagged": false, "summary": "Android: removing a label from an activeMovie/videoPlayer does not work", "creator": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 1.7.0.RC1\r\nAndroid 2.3", "comment": { "comments": [ { "id": "227783", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved in 2.1.3GA", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-16T23:59:27.000+0000", "updated": "2012-11-16T23:59:27.000+0000" }, { "id": "243432", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Works fine, the label is gone after load.\r\nSDK 3.1.0", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-03-21T16:43:05.000+0000", "updated": "2013-03-21T16:43:05.000+0000" }, { "id": "414451", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:29:31.000+0000", "updated": "2017-03-21T21:29:31.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }