cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MDK - Play audio in MDK app (Mobile Development Kit)

umberto_panico
Participant
0 Kudos

Hi,

we are developing an MDK offline app (Android, Web w/o offline obviously) and we need to play different audios when actions are executed.

We tried to use (in a JS rule) the Javascript Web Audio API but we are facing the following issues:

  • We are not able to import a mp3 file inside the project -> when we do it the deploy always fails
  • If we use an external URI, on the web app it works but on the mobile app we see that the Audio class is not defined

Is there any way to achieve this requirement?

Thanks & Regards,
Umberto

Accepted Solutions (0)

Answers (1)

Answers (1)

robert_hunger
Participant

Hi Umberto,

if you use your individual custom client u can build a resource bundle with your mp3 files. we use the extension 'native-script audio' and it works fine but your own client is needed.

+robert