Play mp3 or wav file via script

R
Rafael Gold Contributor
Dänisches Bettenlager GmbH & Co. KG

Hi is there a way to play a specific sound file (wav/mp3) via script (no matter if Legacy or Javascript)?

I found "showmessagebox "Your message" NO_TIMER 1 NOTIFY_DEVICE" but this sound is a bit too short and would have been only a workaround.

Edited 5 years ago
Android Scripting
ANSWERS
RM
Ravikant Mishra
5 years ago
You can try sending intent to achieve this. Something like below To play a video file : sendintent -a "intent:file:///sdcard/www/Email.wmv#Intent;type=video/x-ms-wmv;component=com.cooliris.media/.MovieView;launchFlags=0x4000000;end" More info can be found at soti help https://www.soti.net/mc/help/v14.0/en/scriptcmds/reference/sendintent.html
R
Rafael Gold Contributor
5 years ago (edited 5 years ago)

I found following as a sample:

sendintent -a "intent:file:///sdcard/download/findme.mp3#Intent;type=audio;component=com.android.music;end" 

But does not work right here (Nokia 5.3; Android 10; Android work managed)