Emily Theophilou
Posts: 0
Joined: Mon Apr 07, 2014 3:27 pm

Playing audio files from the database

Im trying to create an app where the user will listen to already existing sounds within the app. In more details im trying to create a language learning application were the user will listen to some audio and then reply. To do that I want to upload my files into the database and play them through there.

I followed a beginners tutorial as to how to use the database but with using the audio files i get weird text on the response tab and i cant see any mappings to connect to the audio play component.

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

Playing audio files from the database

Dear Emily,

You would need to retrieve a database file: http://docs.appery.io/documentation/b... and then save it to Audio component: https://getsatisfaction.com/apperyio/...

Emily Theophilou
Posts: 0
Joined: Mon Apr 07, 2014 3:27 pm

Playing audio files from the database

Hi Katya, Thank you for the reply. I did the retrieve step but then I still cant hear my audio files. The steps I followed are the following : 1) I uploaded my files to the Files Data database collection. 2) Then I added the database service to the app and chose the read command 3) Then as you said I added the name of the file to the end of the URL. 4) Then I bind the data using the data tab 5) Finally I invoked the service using the events tab.
However when I do the mappings there is nothing in the response tab to connect to.
I used a similar tutorial you provide about databases and tried to work around it to play the audio files. I forgot to mention that I used the audio play feature.

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

Playing audio files from the database

Hi Emily,

You can use a direct link to your file:
http://docs.appery.io/documentation/b...

You can use an appropriate link for Audio component 'src' attribute.

Tassilo Posegga
Posts: 0
Joined: Wed Nov 26, 2014 4:44 pm

Playing audio files from the database

Hey, I need to reopen this.

Using the read file service does not have any response? How can I set the source of the audio player? The documentation is a little bad :(

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Playing audio files from the database

Hello Tassilo,

Could you please clarify, do you want to play audio files from a db or from internet or you want to upload them into the app?

Tassilo Posegga
Posts: 0
Joined: Wed Nov 26, 2014 4:44 pm

Playing audio files from the database

I created my own collection, where I added a file column. I want to let users upload files to this table and make other users (specified by acl) listen to this sounds in a list of audio player elements.
If that's not going to work I will need to download all entries and store them to local storage first.

Tassilo Posegga
Posts: 0
Joined: Wed Nov 26, 2014 4:44 pm

Playing audio files from the database

I created my custom collection, where I added a column "file" of type file.
On one page I have a file input field, where the user can select any file right now.
When clicking the share button the create service for my custom collection is invoked and I map the text of the input field to the file field in my service (which is not correct I guess).

Image
Image

Now I created a list with some labels and an audio component. I mapped the file text of my service to the source of the audio component. As expected it is not working :D

Image

Maybe you can help me out here.

PS: Deleteing connection in mappings is not working

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Playing audio files from the database

Tassilo,

Could you please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and send us the app name (http://devcenter.appery.io/documentat...)?

Tassilo Posegga
Posts: 0
Joined: Wed Nov 26, 2014 4:44 pm

Playing audio files from the database

App: ShareFrogg

Return to “Issues”