{ "id": "95059", "key": "TIMOB-9959", "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": "15927", "description": "2014 Sprint 04", "name": "2014 Sprint 04", "archived": true, "released": true, "releaseDate": "2014-02-28" }, { "id": "15929", "description": "2014 Sprint 04 API", "name": "2014 Sprint 04 API", "archived": true, "released": true, "releaseDate": "2014-02-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-02-22T00:03:45.000+0000", "created": "2012-07-12T17:52:36.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-16T20:53:56.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": "Scrolling a scrollable view while a video is playing resulted in an app crash.\r\n\r\nThis is not a regression it occurs on SDK 2.1.0.GA\r\n\r\n{code}\r\n\r\nvar win=Ti.UI.createWindow();\r\n\t\t\r\nwin.backgroundColor='white';\r\nwin.orientationModes=[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT];\r\n\r\nvar videoParams = {\r\n mediaControlStyle: Titanium.Media.VIDEO_CONTROL_EMBEDDED,\r\n scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FIT,\r\n height: '72%'\r\n};\r\n \r\nvar videoViews = [];\r\n \r\nvar curVideo = null;\r\n \r\nfor(var i=0; i<7; i++){\r\n videoViews.push(Ti.Media.createVideoPlayer(videoParams));\r\n}\r\n \r\nvar scrollableView = Ti.UI.createScrollableView({\r\n views: videoViews,\r\n showPagingControl: true\r\n});\r\n \r\nscrollableView.addEventListener('scrollEnd', function(e){\r\n if (curVideo)\r\n {\r\n if (curVideo == videoViews[e.currentPage])\r\n {\r\n return;\r\n }\r\n curVideo.stop();\r\n curVideo.url = null;\r\n }\r\n curVideo = videoViews[e.currentPage];\r\n curVideo.url = 'movie.mp4';\r\n curVideo.play();\r\n});\t\r\n \r\nwin.add(scrollableView);\r\n \r\nwin.addEventListener('open',function(e){\r\n curVideo = videoViews[scrollableView.currentPage];\r\n curVideo.url = 'movie.mp4';\r\n curVideo.play();\r\n})\r\n\r\nwin.open();\r\n\r\n\t\t\r\n{code}\r\n\r\nSteps to reproduce:
\r\n1) Create new studio project with attached code and run on device
\r\n2) 
Scroll to any view\r\n\r\nResult:\r\n1) A scrollable view is shown with first view as the current view. A video start playing when application opens\r\n2) The application crashes\r\n\r\nExpected Result:\r\n1) A scrollable view is shown with first view as the current view. A video start playing when application opens \r\n2) On scrolling to any view the video plays from the start.\r\n", "attachment": [], "flagged": false, "summary": "Android: ScrollableView: v8- The application crashes when scrolling a scrollable view with video playing", "creator": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "etcarev", "key": "etcarev", "displayName": "Evgenii Tcarev", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xoom Android (4.0.3)\r\nSDK 2.1.0.GA and 2.1.1.v20120705143056\r\nTitanium Studio, build: 2.1.1.201207111907\r\n", "comment": { "comments": [ { "id": "240923", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4\n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T10:05:54.000+0000", "updated": "2013-03-06T10:05:54.000+0000" }, { "id": "292103", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added null check when setting url in videoview\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5342", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-09T17:35:13.000+0000", "updated": "2014-02-09T17:35:13.000+0000" }, { "id": "412973", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T20:53:56.000+0000", "updated": "2017-03-16T20:53:56.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }