{ "id": "95039", "key": "TIMOB-10073", "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": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15700", "description": "2013 Sprint 21 API", "name": "2013 Sprint 21 API", "archived": true, "released": true, "releaseDate": "2013-10-18" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-10-11T08:46:47.000+0000", "created": "2012-07-12T12:57:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core" ], "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": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-21T22:34:40.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": "h2. Problem description\r\nWhen opening a video in a modal window, the video is not visible, but you can hear the audio.\r\n\r\nh2. Steps to reproduce\r\n\r\n1. Create a new Ti Mobile project.\r\n2. Add the following code to app.js\r\n{code:title=app.js|borderStyle=solid}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle:'open modal'\r\n});\r\nwin1.add(btn);\r\n\r\nbtn.addEventListener('click',function()\r\n{\r\n\tvar modalWin = Ti.UI.createWindow({\r\n\t\tmodal:true,\r\n\t\tnavBarHidden:true,\r\n\t\tfullscreen:true\r\n\t});\r\n\tvar vidPlayer = Ti.Media.createVideoPlayer({\r\n\t\tbackgroundColor:'#ff00ff'\r\n\t});\r\n\tmodalWin.add(vidPlayer);\r\n\t\r\n\tmodalWin.open();\r\n\t\r\n\tvar videoPath \t= 'http://digitalout.vo.llnwd.net/o35/u/test/holland-android.mp4';\r\n\tvidPlayer.url \t= videoPath;\r\n\tvidPlayer.play();\t\r\n});\r\n\r\ntabGroup.addTab(tab1); \r\ntabGroup.open();\r\n{code}\r\n\r\n3. Run the code and click the open modal button. You will hear audio but you wont see any video.\r\n4. Next go back to app.js and comment out line 24 (modal:true)\r\n5. Recompile and now you can see the video and hear the audio.\r\n\r\n\r\nh2. Additional information\r\nThe whole issue was posted in the Q&A Section here: [http://developer.appcelerator.com/question/139593/video-is-black-but-i-hear-audio---android]", "attachment": [], "flagged": false, "summary": "Android: Can't see video inside a modal window", "creator": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "- Mac OSx 10.6.8\r\n- Ti Studio 2.1.0\r\n- Ti SDK 2.1.0 GA\r\n- Android 4.0.3", "comment": { "comments": [ { "id": "208856", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The code seems to work well on Android 4.1 (Emulator)", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-23T07:15:23.000+0000", "updated": "2012-07-23T07:15:23.000+0000" }, { "id": "241319", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The problem reproduces with release 3.0.2 and master release 3.1.0\n\ntested on\n\nTitanium Studio, build: 3.0.2.201302191606\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2\niOS iPhone Simulator: iOS SDK version: 6.0\n\nBut it works fine on ios emulator ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-08T09:01:12.000+0000", "updated": "2013-03-08T09:01:12.000+0000" }, { "id": "274766", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "The issue cannot reproduce with the release master 3.2.0\r\nTested with: \r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK version: 3.2.0\r\nTested on\r\nDevice: Samsung galaxy s duos Android version: 4.0.4", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-10-11T08:46:47.000+0000", "updated": "2013-10-11T08:46:47.000+0000" }, { "id": "414591", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:34:40.000+0000", "updated": "2017-03-21T22:34:40.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }