yodacom
Posts: 0
Joined: Sat Jul 20, 2013 2:15 pm

How to import an audio file into my app

I just popped over to Application Craft and they have documented plugins which support this function. I hate to mention the competition here but this is a core piece which most applications need and shouldbe supported by appery.io soon or we will have to go elsewhere to build our apps. Unless Appery expects us all to go native and write the code in each environment .... which sort of defeats the whole cloud development concept?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to import an audio file into my app

You can save the file into the local file system.. but not into browser's local storage.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

How to import an audio file into my app

We will work on adding such capability.

Today, you can look into adding this functionality with custom JavaScript or a PhoneGap plug-in.

David6064062
Posts: 0
Joined: Sat Jul 20, 2013 1:34 pm

How to import an audio file into my app

And I am right in thinking that the local url for the location of these files within the local file system could be saved to Local Storage Variables, and then the Video / Audio components can be pointing at the file in the local file system using the Local Storage Variable ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to import an audio file into my app

http://docs.phonegap.com/en/2.4.0/cor... - here you'll find tools for the following scenario:

  1. The user sees in the app description that the first run will require an Internet connection to download additional content.

  2. The user installs the application.

  3. Runs it.

  4. The application looks for the desired audio files in a pre-designated area.

  5. In their absence, app asks the user for permission to download them. Files (up to 2MB) can be stored on our backend or other external resource.

  6. The user authorizes the further loading of content resources.

  7. App downloads all user needs to a pre-allotted folder.

    The script can have a significant advantage of inserting the file into the application itself:

  8. You can ask the user what file he wants to download. For example, you can have 3 sets of audio files with different quality, and different file sizes.

  9. You can fix/replace/add files even after you have uploaded the application in AppStore/PlayMarket.

  10. When first start, you can download a file that lists the files offered for download - a playlist that you will also be able to update without updating the application. From time to time, your application can check out the playlist, perhaps, by the date specified therein, and determine whether to download updates for audio files.

Allan
Posts: 0
Joined: Fri Dec 13, 2013 12:09 am

How to import an audio file into my app

Is the 2MB file size limit applicable to your backed services, or all services for the file API?

Allan
Posts: 0
Joined: Fri Dec 13, 2013 12:09 am

How to import an audio file into my app

Is the 2MB file size limit applicable to your backed services, or all services for the file API? If I have some large audio files (50-100mb files) hosted on Amazon cloud, would I be able to use this method to get those files into the app?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How to import an audio file into my app

Hello! 2MB file size is the limit for back-end service. You can download in app files you need from Amazon.

Christopher Duke
Posts: 0
Joined: Sun Jan 19, 2014 8:59 pm

How to import an audio file into my app

This bit of code helped me out for downloading via PhoneGap and may be of use to somebody out there!

https://gist.github.com/nathanpc/2464060

David6064062
Posts: 0
Joined: Sat Jul 20, 2013 1:34 pm

How to import an audio file into my app

1 Year on, how is the development of this feature coming along ?

Return to “Issues”