{ "id": "97962", "key": "TIMOB-10129", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-02-21T14:31:22.000+0000", "created": "2012-07-25T05:58:26.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and070112" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "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": "2014-07-17T10:12:03.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": "On Android platform, the application crashes when videos on multiple views of scrollableview.\r\n\r\nThis is not a regression. It even occurs on 2.1.0\r\n\r\nSteps to Reproduce:\r\n\r\n1. Install and launch the application on to the android device.\r\n2. Scroll to any view.\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. The video starts playing in that view. On scrolling to any view the video plays from the start. \r\n\r\nActual result:\r\nThe application crashes when scrolled to the other view.find attached the log.txt (This works fine on iOS)\r\n\r\n{code}\r\n\r\nvar _window= Ti.UI.createWindow();\r\n_window.backgroundColor='white';\r\n\t _window.orientationModes=[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT];\r\n\r\n\t\tvar videoParams = {\r\n\t\t mediaControlStyle: Titanium.Media.VIDEO_CONTROL_EMBEDDED,\r\n\t\t scalingMode: Ti.Media.VIDEO_SCALING_ASPECT_FIT,\r\n\t\t height: '72%'\r\n\t\t};\r\n\t\t \r\n\t\tvar videoViews = [];\r\n\t\t \r\n\t\tvar curVideo = null;\r\n\t\t \r\n\t\tfor(var i=0; i<7; i++){\r\n\t\t videoViews.push(Ti.Media.createVideoPlayer(videoParams));\r\n\t\t}\r\n\t\t \r\n\t\tvar scrollableView = Ti.UI.createScrollableView({\r\n\t\t views: videoViews,\r\n\t\t showPagingControl: true\r\n\t\t});\r\n\t\t \r\n\t\tscrollableView.addEventListener('scrollEnd', function(e){\r\n\t\t if (curVideo)\r\n\t\t {\r\n\t\t if (curVideo == videoViews[e.currentPage])\r\n\t\t {\r\n\t\t return;\r\n\t\t }\r\n\t\t curVideo.stop();\r\n\t\t curVideo.url = null;\r\n\t\t }\r\n\t\t curVideo = videoViews[e.currentPage];\r\n\t\t curVideo.url = 'movie.mp4';\r\n\t\t curVideo.play();\r\n\t\t});\t\r\n\t\t \r\n\t\t_window.add(scrollableView);\r\n\t\t \r\n\t\t_window.addEventListener('open',function(e){\r\n\t\t curVideo = videoViews[scrollableView.currentPage];\r\n\t\t curVideo.url = 'movie.mp4';\r\n\t\t curVideo.play();\r\n\t\t})\r\n\r\n_window.open();\r\n\r\n{code}\r\n\r\n", "attachment": [ { "id": "30042", "filename": "log.txt", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-25T05:58:26.000+0000", "size": 4716, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: VideoPlayer: Application crashes when videos on multiple views of scrollableview", "creator": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested with Titanium SDK: 2.1.1.v20120723131610\r\nTested with Titanium Studio: 2.1.1.201207161421\r\nAndroid Device: Samsung Tab (3.2),LG P970 (2.2)\r\nOS: Mac OSX 10.7.3", "comment": { "comments": [ { "id": "239983", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces with sdk 3.0.2 and sdk 3.1.0 .\r\nthis works fine on ios.", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-27T11:18:27.000+0000", "updated": "2013-02-27T11:19:33.000+0000" }, { "id": "294110", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Duplicate of TIMOB-9959", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-02-21T14:31:22.000+0000", "updated": "2014-02-21T14:31:22.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }