[TIMOB-11036] Android: Sound not playable from internal path
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-07-19T20:53:39.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Johan Lundin |
Assignee | Eric Merriman |
Created | 2012-09-06T16:40:04.000+0000 |
Updated | 2017-07-19T20:53:39.000+0000 |
Description
This is the sound version of the video bug TIMOB-10830:
if (URLUtil.isAssetUrl(url)) {
Context context = TiApplication.getInstance();
String path = url.substring(TiConvert.ASSET_URL.length());
AssetFileDescriptor afd = null;
should be
if (URLUtil.isAssetUrl(url)) {
Context context = TiApplication.getInstance();
String path = url.substring(TiConvert.ASSET_URL.length());
// Needed to handle native path urls
path = path.replace("Resources//", "Resources/");
AssetFileDescriptor afd = null;
Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.