Page 1 of 2

Playing audio files from the database

Posted: Mon Apr 07, 2014 3:27 pm
by Emily Theophilou

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.


Playing audio files from the database

Posted: Mon Apr 07, 2014 4:31 pm
by Kateryna Grynko

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/...


Playing audio files from the database

Posted: Wed Apr 09, 2014 2:56 pm
by Emily Theophilou

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.


Playing audio files from the database

Posted: Wed Apr 09, 2014 4:08 pm
by Kateryna Grynko

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.


Playing audio files from the database

Posted: Wed Nov 26, 2014 5:03 pm
by Tassilo Posegga

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 :(


Playing audio files from the database

Posted: Wed Nov 26, 2014 5:11 pm
by Evgene Karachevtsev

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?


Playing audio files from the database

Posted: Thu Nov 27, 2014 4:55 pm
by Tassilo Posegga

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.


Playing audio files from the database

Posted: Fri Nov 28, 2014 1:02 pm
by Tassilo Posegga

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


Playing audio files from the database

Posted: Fri Nov 28, 2014 1:43 pm
by Evgene Karachevtsev

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...)?


Playing audio files from the database

Posted: Fri Nov 28, 2014 1:59 pm
by Tassilo Posegga

App: ShareFrogg