{ "id": "171690", "key": "TIMOB-26076", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-06-11T23:24:46.000+0000", "created": "2018-05-23T06:47:01.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "audio", "externalstorage", "video", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-06-11T23:24:46.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": "\r\n\r\n[ERROR] : MediaResourceGetter: Invalid url: java.lang.RuntimeException: setDataSource failed: status = 0x80000000\r\n[ERROR] : MediaPlayer: error (262, 0)\r\n[ERROR] : MediaPlayer: Unable to create media player\r\n\r\n\r\n================\r\n\r\nThe audio / video file from *external storage* not playing under webview.\r\n\r\nNote: please check the attached code (app.js)\r\n\r\non my android deice I have copied both audio file into the directory where created index.html file is present", "attachment": [ { "id": "65235", "filename": "AudioVideoDemo.zip", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-29T11:38:12.000+0000", "size": 717269, "mimeType": "application/zip" }, { "id": "65236", "filename": "sound.zip", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-29T11:39:34.000+0000", "size": 2429677, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android : WebView Html5 Audio / Video Not playing from External Storage", "creator": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 8.9.4\r\n npm Version = 5.6.0\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 7.1.0.GA\r\nTarget Platform = android", "comment": { "comments": [ { "id": "437867", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Make sure you have permissions granted before:\r\n{code:js}\r\nvar permissions = ['android.permission.READ_EXTERNAL_STORAGE'];\r\n\r\nTi.Android.requestPermissions(permissions, function(e) {\r\n if (e.success) {\r\n Ti.API.info(\"SUCCESS\");\r\n } else {\r\n Ti.API.info(\"ERROR: \" + e.error);\r\n }\r\n});\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-23T08:25:29.000+0000", "updated": "2018-05-23T08:25:29.000+0000" }, { "id": "437868", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Hans,\r\n\r\nI am facing this issue on android OS 4.4.2. device\r\n\r\nYes the app have read-write permission. I am able to write the html file into external storage and also able to point (read) that page (index.html) into webview successfully. the page is displayed fine but on click the audio control the audio is not playing. and it display error on Applelerator studio logs window as I mentioned in description.", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-23T08:47:03.000+0000", "updated": "2018-05-23T08:47:58.000+0000" }, { "id": "437869", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The error indicates an invalid URL then. Make sure you are passing the correct one to the webView. Support will be able to get further infos here. ", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-23T08:53:54.000+0000", "updated": "2018-05-23T08:53:54.000+0000" }, { "id": "437871", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "yes, as the html file and audio file both present in *same directory(AudioFiles)* so for src simply filename should work but it's not working out. I have also tried nativePath as well but that is also not work out\r\n\r\n\r\n\r\n{code:java}\r\n\r\n\r\n{code}\r\n\r\n \r\nhere localPath >>> file:///storage/emulated/0/com.example.audiovideodemo/AudioFiles", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-23T09:28:31.000+0000", "updated": "2018-05-23T09:31:06.000+0000" }, { "id": "437907", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "hello, has anybody looked out this issue ?\r\ncan you please help us to resolve this issue as soon as possible. it’s showstopper issue for us", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-24T10:05:31.000+0000", "updated": "2018-05-24T12:42:11.000+0000" }, { "id": "437973", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please provide a full reproducible sample project that we can use to test the issue on our end. If the issue is reproducible we will forward it for a fix. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-05-28T07:52:42.000+0000", "updated": "2018-05-28T07:52:42.000+0000" }, { "id": "437981", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I have attached sample project and sound files please check it.", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-29T11:43:19.000+0000", "updated": "2018-05-29T11:43:19.000+0000" }, { "id": "439024", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, \r\n\r\ncan you please take this bug on priority if possible. we have learning base app and we are using webview to render html content which also includes media content. as audio/video not working from external storage is showstopper issue for us.\r\n\r\nthanks.", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-06T10:39:44.000+0000", "updated": "2018-07-06T10:44:24.000+0000" }, { "id": "439638", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello, \r\n\r\ncan you please try to resolve this as possible as soon. the android webview html5 audio/video not working from external storage on any of the Android version\r\nthe app have EXTERNAL READ-WRITE STORAGE PERMISSION.\r\n\r\nthanks.", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-01T06:18:50.000+0000", "updated": "2018-08-01T06:18:50.000+0000" }, { "id": "440811", "author": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "body": "hello, \r\n\r\nmy issue is resolved. this is not SDK bug. please close the ticket\r\n\r\nthanks", "updateAuthor": { "name": "jignesh.igp", "key": "jignesh.igp", "displayName": "Jignesh Kasundra", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-08-16T05:06:55.000+0000", "updated": "2018-08-16T05:06:55.000+0000" }, { "id": "449015", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per reporter comments.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-06-11T23:24:46.000+0000", "updated": "2019-06-11T23:24:46.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }