Pre-populate a database with audio snippets (mp3) and play snippets in random order?

0
Hi Community Programming an offline mobile app, I’d like to pre-populate a database with audio-snippets  (mp3). How do I do this? I’d like to randomly select an audio snippet from the database and play it. How to do that?   Thanks for your help, Willfried    
asked
1 answers
1
  1. The files need to be uploaded trough the Mendix runtime.
    For convenience you could use the dropzone widget to upload files quickly. (https://appstore.home.mendix.com/link/app/916/FlowFabric-BV/Dropzone)
  2. To randomly select a file you could create a microflow with a random function (see https://docs.mendix.com/refguide/mathematical-function-calls) in a create variable activity.
    Then use this variable in the retrieve from database action as the offset, making sure that the offset is not higher than the number of files (records available)
    Then to play the file read through this forum post: https://forum.mendix.com/link/questions/91358 and/or this one https://forum.mendix.com/link/questions/1577

 

Hope this helps in finding a solution for your requirement.

answered