{ "id": "92623", "key": "TIMOB-9331", "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": "2012-07-11T15:35:44.000+0000", "created": "2012-05-31T12:31:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18719", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "89381", "key": "TIMOB-8493", "fields": { "summary": "iOS: displaying issues with videos in a scrollableView", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:28:48.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": "h2. Problem description\r\nIssues displaying the video while moving back and forth the scrollableView.\r\n\r\nh2. Steps to reproduce\r\n1. Create an app with the code below\r\n2. Open the app and scroll to the right 2-3 times: in each page, a view is displayed\r\n3. Go back to a previous video by scrolling to the left: the videos disappear and the screen goes black\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'white',\r\n orientationModes:[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]\r\n});\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 autoplay:false\r\n};\r\n\r\nvar videoViews = [];\r\n\r\nvar curVideo = null;\r\n\r\nfor(var i=0; i<20; 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('scroll', 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.pause();\r\n }\r\n curVideo = videoViews[e.currentPage];\r\n curVideo.url = 'movie.mp4';\r\n});\r\n\r\nwin1.add(scrollableView);\r\n\r\nwin1.open();\r\n{code}\r\n\r\n\r\n\r\n\r\nh2. Expected result\r\nVideos are displayed correctly\r\n", "attachment": [], "flagged": false, "summary": "iOS: Videos in a ScrollableView stop working when moving back and forth in the views", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Platform: iOS 5\r\nTitanium: SDK 2.1.0.v20120531113431\r\n", "comment": { "comments": [ { "id": "202773", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-8493. \r\nA solution has been posted in the ticket. See the last sample code posted.\r\n\r\nFYI you can not have more than one videoPlayer active at a time.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-11T15:35:44.000+0000", "updated": "2012-07-11T15:35:44.000+0000" }, { "id": "410580", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T21:28:48.000+0000", "updated": "2017-03-09T21:28:48.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }