Play mp3 or wav file via script

Play mp3 or wav file via script

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.

 

 

2 Answers

Order By:   Standard | Newest | Votes
Rafael | posted this 31 August 2020

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)

 

  • 0
  • 0
Ravikant Mishra | posted this 29 August 2020

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

  • 0
  • 1

Give us your feedback
Give us your feedback
Feedback