{ "id": "82623", "key": "AC-2847", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2011-12-21T15:26:00.000+0000", "created": "2011-11-11T08:07:37.000+0000", "labels": [ "ios5", "iphone", "iphone4", "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "updated": "2016-03-08T07:47:47.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have been developing an app that supports streaming video and audio, among other things. I've gotten everything to work perfectly on my iPhone 3S with iOS 4 as well as my Android device. Tonight, I deployed the app to my new iPhone 4S with iOS5 and now the VideoPlayer will not exit when I click on the \"done\" button on the top-left of the title bar! The video is playing full screen and I cannot get back to any of my application screens. Is this a known bug?\r\n\r\nPlease go to this Q&A question for reference: http://developer.appcelerator.com/question/127799/videoplayer-bug-ios-5-or-iphone-4s-with-ios-5\r\n\r\n\r\nHere's my code to reproduce:\r\n\r\n{code:lang=javascript}\r\nvar contentURL = 'http://streaming.alburhan.tv/Video/GetURL/ME';\r\nvar win = Titanium.UI.currentWindow;\r\nwin.orientationModes = [Titanium.UI.PORTRAIT, Titanium.UI.LANDSCAPE_LEFT, Titanium.UI.LANDSCAPE_RIGHT];\r\n \r\nvar videoURL = \"\";\r\ngetURL();\r\n//if(Ti.Platform.name == 'android') {\r\nfunction getURL() {\r\n var header, responseText;\r\n //alert('Retrieving from ' + contentURL);\r\n var xhr = Ti.Network.createHTTPClient();\r\n \r\n xhr.timeout = 15000;\r\n xhr.onload = function() {\r\n try {\r\n //alert('Connecting...');\r\n Ti.API.info(this.responseText);\r\n Ti.API.info(this.status);\r\n if(this.status == 200) {\r\n Ti.API.info('Response ' + this.responseText);\r\n responseText = this.responseText;\r\n } else {\r\n Ti.API.info('Status ' + this.status);\r\n Ti.API.info('Response ' + this.responseText);\r\n }\r\n //alert(responseText);\r\n if (responseText) {\r\n var evaluated = JSON.parse(responseText);\r\n //alert(evaluated.URL);\r\n videoURL = evaluated.URL;\r\n \r\n var activeMovie = Titanium.Media.createVideoPlayer({\r\n contentURL: videoURL,\r\n backgroundColor:'#111',\r\n //movieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,\r\n //scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL\r\n movieControlMode:Titanium.Media.VIDEO_CONTROL_FULLSCREEN,\r\n scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT,\r\n sourceType:Titanium.Media.VIDEO_SOURCE_TYPE_STREAMING\r\n });\r\n \r\n if (parseFloat(Titanium.Platform.version) >= 3.2)\r\n {\r\n win.add(activeMovie);\r\n }\r\n \r\n var windowClosed = false;\r\n \r\n activeMovie.addEventListener('complete',function()\r\n {\r\n if (!windowClosed)\r\n {\r\n //Titanium.UI.createAlertDialog({title:'Movie', message:'Completed!'}).show();\r\n }\r\n win.close();\r\n });\r\n \r\n activeMovie.fullscreen = true;\r\n activeMovie.play();\r\n \r\n win.addEventListener('close', function() \r\n {\r\n if (!windowClosed)\r\n {\r\n windowClosed = true;\r\n //alert(\"Window closed\");\r\n activeMovie.stop();\r\n }\r\n });\r\n }\r\n else {\r\n alert('Could not load video data from the server. Please try again later.');\r\n }\r\n }\r\n catch(E){\r\n alert('There was an error retrieving stream data from the server: ' + E);\r\n }\r\n };\r\n xhr.onerror = function(e) {\r\n Ti.API.debug(e.error);\r\n alert('Could not connect to the server in order to retrieve stream data: ' + e.error);\r\n };\r\n xhr.open(\"GET\", contentURL);\r\n xhr.send();\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "VideoPlayer bug: iOS 5 (or iPhone 4s with iOS 5)", "creator": { "name": "joelhulen", "key": "joelhulen", "displayName": "Joel Hulen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joelhulen", "key": "joelhulen", "displayName": "Joel Hulen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK 1.7.5\r\n* XCode 4.2\r\n* iOS 5 SDK for Snow Leopard\r\n* MacBook OSX 10.6.8 (10K549) - Snow Leopard\r\n* JRE Version: 1.6.0_26\r\n* Eclipse Version: 3.6.2.R36x_v20110210\r\n", "comment": { "comments": [ { "id": "176941", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Joel\r\n\r\nThank you for raising this ticket. Please note the minor changes I made.\r\n\r\nIn order for me to escalate this to the core team, the test case must run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase].\r\n\r\nI will close this for now. Please reopen the ticket once it is complete, and I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-21T15:25:53.000+0000", "updated": "2011-12-21T15:25:53.000+0000" }, { "id": "183566", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Closing due to inactivity. If this issue still exists, please raise a new ticket, including all the information in the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist] to ensure that we can escalate it quickly. Read [How to Submit a Bug Report|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report] if you have not read it before, and always start a ticket using the [JIRA Ticket Template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template].\r\n\r\nThanks in advance", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-17T02:23:12.000+0000", "updated": "2012-02-17T02:23:12.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }