{ "id": "165090", "key": "TIMOB-24251", "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": null, "resolutiondate": null, "created": "2016-12-21T11:45:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-03-10T21:29:24.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Issue description:*\r\nI tried to use a local html video content in Titanium webview but it doesn't display the video content. \r\n\r\n*Test code*:\r\n{code}\r\nvar win=Ti.UI.createWindow({ \r\nheight:Ti.UI.FILL, \r\nwidth:'100%' \r\n});\r\n\r\nvar webview = Ti.UI.createWebView({ \r\nurl:'movie.html', \r\n});\r\n\r\nwin.add(webview);\r\nwin.open();\r\n{code}\r\n\r\n*movie.html*\r\n{code}\r\n\r\n\r\n\r\n \r\n \r\n\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n{code}\r\n\r\nAttached is the movie.mp4 video file.\r\n*Steps to reproduce:*\r\n1. Create a project with the above code and run it on device\r\n2. It doesn't play the video\r\n\r\n*Expected:* The video content should play\r\n*Actual:* Video doesn't play ", "attachment": [ { "id": "61122", "filename": "movie01.mp4", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-12-21T11:43:29.000+0000", "size": 5180818, "mimeType": "video/mp4" } ], "flagged": false, "summary": "Android: Local html video content is not displaying in titanium webview", "creator": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.8\r\n Core Package = 6.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.11\r\n node-appc Version = 0.2.39\r\n\r\nTitanium SDKs\r\n 5.5.1.GA\r\n 6.0.0.GA\r\n\r\nAndroid device: HTC one with android 4.4.3\r\n\r\n\r\n", "comment": { "comments": [ { "id": "403780", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can we do this natively to see if it is supposed to work? ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-12-22T05:56:55.000+0000", "updated": "2016-12-22T05:56:55.000+0000" }, { "id": "403879", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{{autoplay}} does not work on Android 4.4+; you also need to define an {{onclick}} event.\r\n\r\nTry this:\r\n\r\n*app.js*\r\n{code:js}\r\nvar w = Ti.UI.createWindow(),\r\n wv = Ti.UI.createWebView({\r\n width: Ti.UI.FILL,\r\n height: Ti.UI.FILL,\r\n url: 'index.html',\r\n scalesPageToFit: true\r\n });\r\n\r\nw.add(wv);\r\nw.open();\r\n{code}\r\n\r\n*index.html*\r\n{code:html}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n\r\nNOTE: you can just use the {{index.html}} code as a base since you are using Alloy", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2016-12-27T16:15:55.000+0000", "updated": "2017-01-11T08:52:54.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }