{ "id": "102391", "key": "TIMOB-11212", "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": "14165", "description": "2012 Sprint 21 API", "name": "2012 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2012-10-22" }, { "id": "14273", "description": "2012 Sprint 21", "name": "2012 Sprint 21", "archived": true, "released": true, "releaseDate": "2012-10-22" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2012-10-10T17:47:13.000+0000", "created": "2012-09-28T21:17:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [ { "id": "27816", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "107101", "key": "TIMOB-12156", "fields": { "summary": "iOS: In iOS6, Modal Window with video player in it leaves a black screen on close", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-04-15T22:39:00.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": "Video player goes into a loading mode at the end of the video when created in a two window application. It works fine in a single window app. \r\nh4. Repo Steps\r\n1. Run the below code in your projects app.js.\r\n2. Open the app. Click in the button \"Go to second window\".\r\n3. Now click the button \"Play video\"\r\n4. Go to the end of the video and you can see the loading window after the video ends.\r\n\r\n\r\n{code}\r\nfunction movie_remote(target) {\r\n var contentURL = 'http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov';\r\n if (Ti.Platform.name == 'android') {\r\n contentURL = \"http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4\";\r\n }\r\n var activeMovie = Titanium.Media.createVideoPlayer({\r\n url: contentURL,\r\n backgroundColor:'#111',\r\n mediaControlStyle:Titanium.Media.VIDEO_CONTROL_FULLSCREEN, // See TIMOB-2802, which may change this property name\r\n scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\n fullscreen: true\r\n });\r\n \r\n var windowClosed = false;\r\n \r\n activeMovie.addEventListener('complete',function() {\r\n Ti.API.info('moview complete');\r\n if(!windowClosed) {\r\n windowClosed = true;\r\n Ti.UI.iPhone.showStatusBar();\r\n \r\n activeMovie.stop();\r\n \r\n target.remove(activeMovie);\r\n target.navBarHidden = false;\r\n target.orientationModes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.PORTRAIT];\r\n target.close();\r\n }\r\n });\r\n \r\n target.navBarHidden = true;\r\n target.orientationModes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT];\r\n target.add(activeMovie);\r\n activeMovie.play();\r\n};\r\n\r\n\r\nfunction Window1(tab){\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: '#fff',\r\n tabBarHidden: true,\r\n title: 'L1'\r\n });\r\n var btn = Ti.UI.createButton({\r\n title: 'GO TO SECOND WINDOW'\r\n });\r\n btn.addEventListener('click', function() {\r\n tab.open(Window2());\r\n });\r\n\r\n win.add(btn);\r\n\r\n win.addEventListener('open', function() {\r\n win.orientationModes = [Ti.UI.LANDSCAPE_LEFT, Ti.UI.LANDSCAPE_RIGHT, Ti.UI.UPSIDE_PORTRAIT, Ti.UI.PORTRAIT];\r\n });\r\n return win;\r\n}\r\n\r\nfunction Window2(){\r\n\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: '#ccc',\r\n title: 'L2'\r\n });\r\n var btn = Ti.UI.createButton({\r\n title: 'Play Video'\r\n });\r\n\r\n win.add(btn);\r\n\r\n\r\n btn.addEventListener('click', function() {\r\n movie_remote(win);\r\n });\r\n\r\n return win;\r\n}\r\n\r\nfunction TabGroup() {\r\n var tabgroup = Ti.UI.createTabGroup();\r\n \r\n var tab = Ti.UI.createTab();\r\n\r\n var win = Window1(tab);\r\n tab.window = win;\r\n\r\n tabgroup.addTab(tab);\r\n\r\n return tabgroup;\r\n}\r\n\r\nTabGroup().open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: VideoPlayer goes into a loading mode at the end of the video when created in a two window app", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS6\r\nTi SDK 2.1.3.x CI build", "comment": { "comments": [ { "id": "221770", "author": { "name": "jschultze+titanium@conexco.de", "key": "jschultze+titanium@conexco.de", "displayName": "Joscha Schultze", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is a really annoying bug. Does anyone have a workaround?", "updateAuthor": { "name": "jschultze+titanium@conexco.de", "key": "jschultze+titanium@conexco.de", "displayName": "Joscha Schultze", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-10-02T19:23:00.000+0000", "updated": "2012-10-02T19:23:00.000+0000" }, { "id": "222934", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "A fullscreen video player comes up in its own view controller that is presented by the top window.\r\n\r\nBefore removing the video player from the window or closing the current window it is important to dismiss this full screen movie controller.\r\n\r\nAdd activeMovie.setFullscreen(false); in the complete handler before removing video player and everything will work fine.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T17:47:13.000+0000", "updated": "2012-10-10T17:47:13.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }