Adding continuos backgrond music

Hi. Hopefully someone can help me. I want to add a continuos music at welcoming screen and the music is automatically stop when user click the enter button (blue button) .
How to do it. Please help me!

Screenshot_20210819-010049|250x500

Welcome @MOHD_ANWAR

Follow the advice in Player

Simply;

  • add your music.mp3 file into Media
  • add a Player component
  • Check Loop in the Player Properties.
  • set Player.Source to the mp3

in Screen1.Initialize

  • set Player.Start

in Blue button

  • set Player.Stop

Experiment and code the Blocks. :slight_smile:

Does that help?

Here are some resources to help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... 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 http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles

How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also look here http://kio4.com/appinventor/index.htm and here http://www.imagnity.com/tutorial-index/ for more tutorials.

Learn about components http://ai2.appinventor.mit.edu/reference/components/
and visit the Library http://appinventor.mit.edu/explore/library Help>Library on the MENU

1 Like