# Play mp3 and repeat when finished

**URL:** <https://forum.kirupa.com/t/play-mp3-and-repeat-when-finished/151587>\
**Category:** Uncategorized\
**Created:** [June 16, 2005, 3:18pm UTC](https://forum.kirupa.com/t/play-mp3-and-repeat-when-finished/151587 "2005-06-16T15:18:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grimmus](https://avatars.discourse-cdn.com/v4/letter/g/b4bc9f/32.png) [@grimmus](https://forum.kirupa.com/u/grimmus)\
**Post date:** [June 16, 2005, 3:18pm UTC](https://forum.kirupa.com/t/play-mp3-and-repeat-when-finished/151587/1 "2005-06-16T15:18:23Z")

</div>

Hi ,

I have a website which plays one mp3 track, its about 4 minutes long, i am wondering how can i play this track again when it ends. Here is my code:

```auto
music = new Sound();
music.loadSound("music/Unison.mp3",true);
//music.play();
music.loop();

```

I thought music.loop() would work but it doesnt.

Also, i just looked at the site on a webserver and the sound is very choppy (i.e. keeps stopping and starting again) any ideas on how to prevent this.

Any help is great
