Need some help with play music on mit app inventor

I am having troubles having music play on mit app inventor and I cant find a solution to the problem and i need help please and thank you

Welcome Gabriel.

Lots of ways to play music depending on where the music file(s) are located. Simply use the Player component.

Here is one way using an extension App Inventor Extensions: File | Pura Vida Apps See the example in the documentation for Jukebox:
Get a list of all music files of the Music directory of your device and play your music in random order.

Thanks but I am trying to have only one music play

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

1 Like

Screenshot 2022-09-16 124620
I actsidenly deleted my egeisting blocks so here's a pic of my caponatas

Take the already mentioned jukebox example and adjust it to your needs
And if you get stuck, then post a screenshot of your relevant blocks

Taifun

Ok but i am having troubles understating the jukebox example

Can you elaborate? What kind of troubles do you have and where exactly?

From the documentation

Get a list of all music files of the Music directory of your device and play your music in random order.

It also might be, you have to first learn a few basics?

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Well I am not trying to make a dictionary of music I am just have a problem playing one song (sorry if I sound mean I am getting over stressed from this project

To play one music file you can do this, if the file is stored in Media.

playmp3

See the documentation Player

A tutorial example Appinventor Play Music file through the app - YouTube

1 Like

See here:

grafik

and here:

Still not working I don't understand it is still not working even with professional help

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Well, the player can only play sound files, for example mp3 or wav format, but not html files...

Taifun

Can you send me some mp3 i cant find some that aren't block and can you make sure that they are stress relief music please

What about doing a Google search?
This is not a mp3 sharing platform here. .

Taifun

I tried using a google search but all the mp3 music i find are blocked making them useless