Jump to content
UBot Underground

How To Play Audio In A Jukebox "style" Interface


Recommended Posts

Hi all,

 

I was wondering if anyone has created a simple Audio Jukebox in ubot studio?

 

I was wondering if it can be done in the native gui of ubot without resorting to java and html?

 

i have started to investigate and I can play the audio file using the "Play Sound" function but cannot find a way of pausing the audio or stopping the audio.

 

I tried to use "Sound>Stop sound" but I am guessing that relates to the OS System sounds and not the sound being played directly from the ubot?

 

Anyone tried this?

 

Here's my basic starter code.

ui button("Play") {
    verify audio libraries
    play sound(#filename)
}
ui button("Stop") {
    bot source command(1290)
}
ui open file("Assign File",#filename)

Link to post
Share on other sites

OK - I had to resort to a shell command and call out the wmplayer.exe, which is a shame as I wanted to do this all in the GUI without resorting to third party tools.

 

I have to say the wmplayer is very limited to control by the command line.

 

Think I will have to find a thirdparty player that behaves well and can be controlled better by the commandline.

 

Pants!

Link to post
Share on other sites
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...