Importing audio clips

37 views
Skip to first unread message

Rahul Kharche

unread,
Jan 6, 2021, 2:29:25 AM1/6/21
to Blockly
Good afternoon everyone  I"m creating a small application regarding to implement a different audio clips by using buttons.anyone can help me how to import audio clips?

Coda Highland

unread,
Jan 6, 2021, 11:58:44 AM1/6/21
to blo...@googlegroups.com
You're more or less going to be on your own here. Blockly doesn't provide any functionality like this by itself. It's meant to control that kind of functionality provided by a host application.

Assuming you're working on a browser-based app, it shouldn't be too hard to use the HTML5 audio tag to manage an audio clip, and then you can make a Blockly block that has a dropdown list of the loaded clips that generates code to invoke the play() method on the audio object.

/s/ Adam

On Wed, Jan 6, 2021 at 1:29 AM Rahul Kharche <rahul...@gmail.com> wrote:
Good afternoon everyone  I"m creating a small application regarding to implement a different audio clips by using buttons.anyone can help me how to import audio clips?

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/db6c0f45-7e1d-407f-9067-bf4972da266cn%40googlegroups.com.

Rahul Kharche

unread,
Jan 7, 2021, 2:18:40 AM1/7/21
to blo...@googlegroups.com
Thanku  so much  hope this will work for me

Reply all
Reply to author
Forward
0 new messages