# ERROR: Audio on app needs to always stop playing when moving away from media screen

**URL:** <https://community.thunkable.com/t/error-audio-on-app-needs-to-always-stop-playing-when-moving-away-from-media-screen/1599614>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 5, 2021, 7:55pm UTC](https://community.thunkable.com/t/error-audio-on-app-needs-to-always-stop-playing-when-moving-away-from-media-screen/1599614 "2021-11-05T19:55:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [November 5, 2021, 7:55pm UTC](https://community.thunkable.com/t/error-audio-on-app-needs-to-always-stop-playing-when-moving-away-from-media-screen/1599614/1 "2021-11-05T19:55:42Z")

</div>

Hello Thunkers! 👋🏻

I have an app that automatically starts streaming audio tracks from a Thunkable database in a shuffled format as soon as it arrives on the MEDIA page. This works beautifully! (And I have a lot of you amazing fellow Thunkers to thank for this!! 🤩 )

What I want it to do, is **STOP** playing whenever the user moves to another screen.

These are the blocks I’ve used to achieve this, when the user navigates away, on other screens:  
 ![Screen Shot 2021-11-05 at 19.48.05](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8759d4d723f25eba01d27c59eb87196582f1261.png)

_Unfortunately_, I seem to run into an error at times (not every time, but often enough)… normally when I arrive on MEDIA and try to navigate away “too quickly”… the audio files will keep playing on the next screen I go to, _unless_ I navigate to yet another screen.

Sometimes it happens even after listening to these tracks for a while on MEDIA and navigate away.

It’s an obvious error that really needs sorting out! 😅

This is a link to the project if you have a moment to see what I may be doing wrong!  
[https://x.thunkable.com/copy/242a5afa9c9fb6b5083351b30d448158](https://x.thunkable.com/copy/242a5afa9c9fb6b5083351b30d448158)

A huge thank you to anyone who can help me figure this one out!!

---

<div class="post-metadata">

**Author:** ![looovelee](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@looovelee](https://community.thunkable.com/u/looovelee)\
**Post date:** [November 9, 2021, 3:37pm UTC](https://community.thunkable.com/t/error-audio-on-app-needs-to-always-stop-playing-when-moving-away-from-media-screen/1599614/2 "2021-11-09T15:37:10Z")

</div>

Anyone have an idea what might be happening here?

I really want the user navigating away from the **Media** screen to stop all of the audio.

Not sure why it happens sometimes and not other times.

Many thanks!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:14pm UTC](https://community.thunkable.com/t/error-audio-on-app-needs-to-always-stop-playing-when-moving-away-from-media-screen/1599614/3 "2024-11-08T13:14:27Z")

</div>


