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.
Related
Hello so I am trying to make online videos download on the android export app from unity and then play it back in the same app. so far I have used a plugin EasyMovieTexure asset for streaming online videos but cannot find a way to download videos and play them. I have searched and found that I can download the video with Android Application.persistentDataPath but I don't know how to use it and save the video file to a location on android.
Help is much appreciated.
the easiest way will be using System.IO.File.WriteAllBytes () to save all byte data from the WWW object. But this method actually need RAM to hold the whole file for a while. It doesn't work if the file is too big. if the file size is too big, you probably need another way to do the downloading and saving
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
I am new to phoneGap. I am creating a dummy app to upload an audio file from iOS/android device on local server. So I was wondering if there is a way to open the audio gallery and select the required audio file to upload. Similar to an image gallery.
Is it possible to open audio list and select necessary audio file? If not, what is the alternative?
As far as I remember, you cannot reach the pictures and audio files stored in the media gallery. Therefore, you may need to implement your own native plugin and call the appropriate methods from your JavaScript code.
You can capture audio/image by using Capture plugin of Phonegap. Check this out Capture Plugin
You can perform basic File operations as well. Check this out File Plugin
For your situation, you have to implement native interface which can be accessed by your JavaScript code. This would be an alternative way for it. If you desire to create your own plugin, please have a look at Plugin Development Guide. This might be helpful.
Well I have implemented code using file plugin which will iterate through all the folders recursively to find all the image (created this as I needed multi selection approach which is not directly provided by cordova) . You can modify the extension of image (search) i.e png,jpeg etc with audio extension.
With this code you will get the path of audio files and you can make use of filetransfer to upload it on server
Hope it helps you
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 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!