# Music keep playing

**URL:** <https://community.thunkable.com/t/music-keep-playing/1998490>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [August 13, 2022, 8:00pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490 "2022-08-13T20:00:24Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 13, 2022, 8:00pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/1 "2022-08-13T20:00:24Z")

</div>

So, I made a screen where you can select what kind of music you want to listen while playing… I set that If you choose another song the other will stop, there is also a button that stop every song… everything is working well except one thing… if I leave the window, going on another panel, when I come back I can’t stop the music, I can start another one but then 2 songs will be played at the same time… any way I could fix that?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/43b08385231c2c30a545578b90f13774ec46d364.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/2/f2a4f1c93a77d86707878e34eb5593d20e93e0c1.jpeg)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 14, 2022, 1:06am UTC](https://community.thunkable.com/t/music-keep-playing/1998490/2 "2022-08-14T01:06:29Z")

</div>

What happens if you add a block that says when screen opens, stop [all sounds]?

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 14, 2022, 6:40pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/3 "2022-08-14T18:40:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/6/d6b3e042c4571522d9a5a9d26eb532289bf2aaa7.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/5/05569304f5496990e66dcd45d8b08bf3002f7426.png)  
I did 2 things but seems like none of them are working, when I open the screen and when I press the button that will navigate to the music selection page

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 20, 2022, 11:55pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/4 "2022-08-20T23:55:28Z")

</div>

I am still trying to figure it out how I can solve this but it seems nothing worked so far, I guess I will just take out the option of choosing the song in that case xP

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [August 21, 2022, 12:10am UTC](https://community.thunkable.com/t/music-keep-playing/1998490/5 "2022-08-21T00:10:16Z")

</div>

Hey @mantarosiegabrielq55

Can you share a minimal example that demonstrates this behavior?

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 21, 2022, 4:34pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/6 "2022-08-21T16:34:43Z")

</div>

This is a video example, if I start a song and I stop it while I’m in the screen it’s working, but if I pick a song and then leave the screen I can’t stop it anymore but I can play another one on top of it…

[https://res.cloudinary.com/dnhyiju0t/video/upload/v1661099472/Screen\_recorder\_08-21-2022\_18-27-37-184\_bp5bid.mp4](https://res.cloudinary.com/dnhyiju0t/video/upload/v1661099472/Screen_recorder_08-21-2022_18-27-37-184_bp5bid.mp4)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 21, 2022, 6:12pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/7 "2022-08-21T18:12:24Z")

</div>

Unfortunately, a video of something going wrong is almost never helpful in determining _why_ it’s happening. It is helpful for us to see the effect but we’ll need to have a link to the project or at the very least screenshots of the blocks you’re using to play and stop the sounds.

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 22, 2022, 2:48pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/8 "2022-08-22T14:48:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/875241ed4a52e4525373901fdddf0d1d0a95133b.png)  
That’s the block screen, when I press on another music the other should stop  
 ![1661179671890](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/b/9b05186347da3645dff6e48b5ecc40bb8d780812.jpeg)  
This one is from the option menu, when you press on select music button all the songs should stop… but it doesn’t

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 22, 2022, 2:51pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/9 "2022-08-22T14:51:25Z")

</div>

And that’s the project link - [Thunkable](https://x.thunkable.com/copy/ab6d104be067b601d1a67a9b91412511)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 22, 2022, 6:09pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/10 "2022-08-22T18:09:03Z")

</div>

It seems like it’s working, at least in a web browser. When I click Back and then click Select Music, it stops all music from playing.

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 22, 2022, 6:55pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/11 "2022-08-22T18:55:09Z")

</div>

That’s weird, for me isn’t happening, I also test it on my phone on the app and isn’t working there also xP

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 22, 2022, 7:51pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/12 "2022-08-22T19:51:30Z")

</div>

I figured out that if I start with the first screen (“Splash screen”), then the problem you describe occurs where it keeps playing music after switching screens. But if I start with the “Select Music1” screen, it does not have that problem.

---

<div class="post-metadata">

**Author:** ![mantarosiegabrielq55](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@mantarosiegabrielq55](https://community.thunkable.com/u/mantarosiegabrielq55)\
**Post date:** [August 23, 2022, 2:27pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/13 "2022-08-23T14:27:41Z")

</div>

Hmm, is there any bug or something that I could change? I could try to make the music selection screen first screen, then you can enter again there from options, but that won’t be very aesthetic xD

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [November 21, 2022, 2:27pm UTC](https://community.thunkable.com/t/music-keep-playing/1998490/14 "2022-11-21T14:27:55Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
