{ "id": "61670", "key": "TIMOB-1038", "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": "11224", "name": "Release 1.4.0", "archived": true, "released": true, "releaseDate": "2010-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:01.000+0000", "created": "2011-04-15T02:42:06.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:01.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}
app has multiple images. click image to play video. after 2-3\nclicks - app crashes. code:
\n\n\nvar win = Titanium.UI.createWindow();\n\nvar scrollView = Titanium.UI.createScrollView({\n contentWidth:320,\n contentHeight:'auto',\n top:0,\n showVerticalScrollIndicator:true,\n showHorizontalScrollIndicator:false\n });\n \nvar actInd = Titanium.UI.createActivityIndicator({\n bottom:10, \n height:50,\n width:10,\n style:Titanium.UI.iPhone.ActivityIndicatorStyle.BIG\n});\n\nvar xhr = Ti.Network.createHTTPClient();\n\nxhr.open(\"GET\",\"http://www.jimmyjohansson.net/rss/workIphoneRSS.xml\");\n\nxhr.onerror = function()\n{\nactInd.hide(); \n\nalert(\"Error: Please check you're data connection and restart the app.\");\n};\n\nactInd.show();\n\nxhr.onload = function()\n{\n try\n {\n var doc = this.responseXML.documentElement;\n var items = doc.getElementsByTagName(\"item\");\n for (var c=0;c<items.length;c++){\n var item = items.item(c); \n var link = item.getElementsByTagName(\"link\").item(0).text;\n var image = item.getElementsByTagName(\"image\").item(0).text;\n var imageView = Titanium.UI.createImageView({\n url:image,\n id:link,\n defaultImage:'images/loading-small.png',\n top:127*c,\n width:320,\n height:127\n });\n \n scrollView.add(imageView); \n }\n win.add(scrollView);\n \n actInd.hide();\n }\n catch(E){\n alert(E);\n }\n};\n\nxhr.send();\n\nwin.add(actInd);\n\nscrollView.addEventListener('click',function(e){\n var source = e.source;\n var activeMovie = Titanium.Media.createVideoPlayer({\n backgroundColor:'#000',\n url:source.id,\n movieControlMode:Titanium.Media.VIDEO_CONTROL_FULLSCREEN,\n scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL\n });\n activeMovie.play();\n});\n\nwin.open();
\n
I think this issue was fixed by #894 but\ncan't confirm because there appears to be a problem with playing\nremote video. Working on it now.