nbruley commented on issue #401:
URL: 
https://github.com/apache/cordova-plugin-media/issues/401#issuecomment-2421040708

   I must say, much of this doesn't make sense to me either. That's why I'm 
posting here.
   
   One thing I will say is my app was created quite a long time ago, and at 
that time it was advantageous to install to SD card if so I used 
installLocation of "prefer external". My `AndroidPersistentFileLocation` is now 
set to "compatibility" which I think puts the app data in a different location 
than I would do if I were creating the app now (with internal setting). If that 
is the case, creating a new app might not reproduce this exact problem. Would 
Android default to looking in `ApplicationStorageDirectory` given my config.xml 
settings and latest changes to Android permissions? 
   
   I tried `applicationStorageDirectory` just because I wondered if that would 
be the www folder.  
[https://cordova.apache.org/docs/en/dev/reference/cordova-plugin-file/index.html]
 states that this location is r/w but `applicationDirectory` is read only. 
Where are you getting your information about `applicationStorageDirectory` 
being read only?
   
   I am using the file-transfer plugin to download from an online web location 
to the device. I can see a file produced on the device when I download to 
`externalRootDirectory` because apparently the emulated SD card is the internal 
Music directory on my device. Likewise, I do not get a download error when 
downloading to `applicationStorageDirectory` even though I obviously can't see 
the file anywhere. However, when trying to play a (missing) file which I never 
downloaded to `applicationStorageDirectory`, I get a media plugin error that 
file was not found, whereas if I download it first, I get the Logcat error 
"failed to connect to localhost" and an undefined error from the media plugin.
   
   The errors I'm experiencing are not related to the file-transfer plugin. 
That plugin works fine. The error occurs when I try to play a file I downloaded 
with the media plugin.
   
   I understand that using the `platform_www` directory is not recommended; 
however, unlike iOS, I've never been able to get the files from the www folder 
to update the `platform_www` when rebuilding the app. Maybe you can enlighten 
me on which step I'm missing, but that's another story and irrelevant to this 
issue.
   
   Perhaps you can respond to the above before I go about trying to figure out 
how to create a sample reproduction app? I appreciate your time. I do think 
that creating a new app from scratch with internal instead of external settings 
would be worthwhile and would potentially solve my problem for future apps.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to