I need to develop application for Android which decrypts audio and video files saved on SDCARD
and plays them without saving on SDCARD or on phone.
Is there any way to do using standard Android MediaPlayern class?
Thanks, Costa.
The solution is to build HTTP server on the phone and play the files using the server.
There the link to server I used (and it worked good):
http://www.prasannatech.net/2008/10/simple-http-server-java.html
Thanks!
Related
I am about to build an app like deezer using flutter https://play.google.com/store/apps/details?id=deezer.android.app now for I have 2 question.
Is there any library for online audio streaming which may give the possibility to download the app
How can I store my audio files in a private / hidden folder such as folder created using vault app in case of download https://play.google.com/store/apps/details?id=com.netqin.ps
Thanks for your help
To stream audio you can use this library:
AudioPlayers
To keep your files safe you can use the Sandbox folder in iOS and getExternalFilesDir in Android.
You can find an example of how to implement the saving of the file over here:
Saving data to Local Storage in Flutter
I remind you that SOF is to show what you've done so far, some of your progress, examples, etc so we can help you with that and not how to build an entire app.
I have found an app on play store using my absolute path of mp3 files to his/her app to stream my mp3 files. I think he/she created a script which crawling my website and getting mp3 files with title of the songs or albums and then creating his/her database and then creating a web service which generates json. So he/she can use it in app. I have tried to prevent hotlinking of mp3 files from my .htaccess from my server but i think this trick is only working for websites not working for android applications. Please tell me how to stop mp3 files from third parties android apps or any other platforms except my own app. I have my own app on android so i don't need to stop that too. Thanks
Waiting for solution from experts :)
tahir issue is very simple. when some one wants to access your mp3 file ask app secret key in web service call . for sure now you will authenticate service no spams calls
Working on an android app to stream music from my ftp server, I was wondering if anyone can offer any code, advice, or tutorial on how to access the specific folder/directory containing the audio files, list the audio files, and stream them through my app, also if it is possible or not. Thanks
Would something like this be helpful? For accessing the data via FTP, the FTPClient class could become handy.
I've been following this blog to help me make a simple music player function with an Android app (http://simonmacdonald.blogspot.com/2011/05/using-media-class-in-phonegap.html).
All works well - but I would like some way to extract a list of all music media stored on the phone so the user can click a file and play it. Does anyone know if this is possible via phone gap? I'd need to access track name/artist etc and a link to the track.
Cheers
Paul
Prognosis is not good.... PhoneGap does not have an API for accessing the media library. So, you would have to fall back to the File API to locate music files, and then... you would have to read the binary data in the actual files to extract out the track/artist metadata. Ouch. Seems pretty impractical.
[EDIT]
By the way, PhoneGap is not the only game in town. Appcelerator seems to solve the same problem, and apparently has a richer API, which includes
access to media metadata
I want to send a recorded audio file from an android phone to a website. No wires are to be used, this has to be done in the phone. How can I achieve this? What APIs should I use?
Try HttpManager and POST upload request.