{ "id": "100395", "key": "TIMOB-10830", "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": "2012-09-04T10:12:35.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api", "exalture" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "21148", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "100585", "key": "TIMOB-11036", "fields": { "summary": "Android: Sound not playable from internal path", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:14.000+0000", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "On android the video url must be specified as a url and always belongs in the resource folder. The following fix allows it to be consistent with the iphone call where native path can be used.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/2_1_X/android/modules/media/src/java/android/widget/TiVideoView8.java\r\n\r\nLine 424-426:\r\n\r\nString path = mUri.toString().substring(\"file:///android_asset/\".length());\r\nafd = getContext().getAssets().openFd(path);\r\nmMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\r\n\r\nshould be replaced with:\r\n\r\nString path = mUri.toString().substring(\"file:///android_asset/\".length());\r\n// Needed to handle native path urls\r\npath = path.replace(\"Resources//\", \"Resources/\");\r\nafd = getContext().getAssets().openFd(path);\r\nmMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Ti.Media.VideoPlayer not accepting native path on Android ", "creator": { "name": "jdlundin", "key": "jdlundin", "displayName": "Johan Lundin", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jdlundin", "key": "jdlundin", "displayName": "Johan Lundin", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 2.1.2.GA\r\nAndroid", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }