{ "id": "154168", "key": "TIMOB-20248", "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": null, "resolutiondate": null, "created": "2016-01-07T20:14:53.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "50317", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "154369", "key": "AC-570", "fields": { "summary": "iOS: Alloy - Video Player with Activity Indicator causing video not showing", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T19:55:57.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If in the Alloy Markup, the video player adds Activity Indicator as a child, the video plays but no image.\r\n\r\n{code}\r\n\t\r\n\t\t\r\n\t\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Alloy - Video Player with Remote/Local Url call in index.js with Activity Indicator causing video not showing", "creator": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 9 SDK 5.1.1", "comment": { "comments": [ { "id": "374134", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tried to reproduce the issue with both Alloy and Classic project in SDK 5.1.1.GA. I was unable to do so. The video player plays fine with Activity Indicator as a child.\r\n\r\nh4. Code Sample\r\nh5. Alloy\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nh5. Classic\r\n{code}\r\nvar vidWin = Titanium.UI.createWindow({\r\n title : 'Video View Demo',\r\n backgroundColor : '#fff'\r\n});\r\n\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n autoplay : true,\r\n fullscreen: true,\r\n url: 'bigbuckbunny.mp4',\r\n});\r\n\r\nvar activityIndicator = Ti.UI.createActivityIndicator({\r\n color: 'green',\r\n message: 'Loading...',\r\n style: Ti.UI.ActivityIndicatorStyle.BIG,\r\n \r\n});\r\n\r\nvideoPlayer.add(activityIndicator);\r\nvidWin.add(videoPlayer);\r\nvidWin.open();\r\n{code}\r\n\r\nh5. Environment\r\n\r\nMac OS X\r\nAppcelerator Command-Line Interface, version 5.1.0\r\nTitanium CLI Version = 5.0.5\r\nSDK Version = 5.1.1.GA\r\niOS 9.1\r\n\r\nThanks.\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-10T09:58:41.000+0000", "updated": "2016-01-10T09:58:41.000+0000" }, { "id": "374249", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nTry set the url in the controller js, not in the view xml.\r\n\r\nI test it with a remote url, not a local file. Not sure if it matters.\r\n\r\nThe video plays with no images.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-12T03:06:56.000+0000", "updated": "2016-01-12T03:06:56.000+0000" }, { "id": "374773", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Although I tested with remote URL, it doesn't mean local files won't have this issue. Thanks.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-18T06:04:50.000+0000", "updated": "2016-01-18T06:04:50.000+0000" }, { "id": "374778", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~shawnlan], I tested this with local Url defined in index.js. It looks like this is also happening with local url defining in index.js file. So the problem here is with where you are calling the url property for video player. I am re-editing the title. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-18T08:53:33.000+0000", "updated": "2016-01-18T08:53:33.000+0000" }, { "id": "376466", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~sdarda] so you are saying that in BOTH ALLOY and CLASSIC, if activity indicator is set, it will fail?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-10T05:10:30.000+0000", "updated": "2016-02-10T05:10:30.000+0000" }, { "id": "397140", "author": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested it again recently with SDK 5.5.0. With or without activity indicator set, as long as I have in Alloy View and set the video URL from the controller, the video plays *without* images.", "updateAuthor": { "name": "shawnlan", "key": "shawnlan", "displayName": "Shawn Lan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-24T01:01:06.000+0000", "updated": "2016-09-24T01:01:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }