# Can I stop the video player when i navigate away from that page

**URL:** https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214
**Category:** Questions about Thunkable X
**Tags:** beginner
**Created:** [June 29, 2021, 3:37pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214 "2021-06-29T15:37:11Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 3:37pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/1 "2021-06-29T15:37:12Z")

</div>

I am working on a simple app that will play a downloaded video when I navigate from a home page to a new page. Think about being in a museum and pressing a button on an ipad. I want to go to a new page and play a video. I would like to beable to return to the home page by pressing a button.

My problem is that when I navigate back to the home screen the video will not stop playing.

I have been unable to find any tutorials about using blocks to trigger the video player to play when using a downloaded video. Here are screen shots of my pages. I would appreciate any help you can offer.

 ![Screen Shot 2021-06-29 at 10.28.18 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/ed659b844f548de5a07bb80fff318af030ae9b15.png)

 ![Screen Shot 2021-06-29 at 10.28.32 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e03b580aabaeb1eafcc1a9cfc889be9f81e83ad2.png)

 ![Screen Shot 2021-06-29 at 10.29.22 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f2f0708645d6eb0a7e9aa44f38d918e49704926.png)

 ![Screen Shot 2021-06-29 at 10.29.12 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/109c4b900f1f913b389a353639359845b67eee77.png)

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 4:23pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/2 "2021-06-29T16:23:04Z")

</div>

I am not getting any feedback for my question. Is this because I am missing some basic programing knowledge and should refer to documentation?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 29, 2021, 5:25pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/3 "2021-06-29T17:25:22Z")

</div>

You just posted your issue a few hours ago. We are here all users like you. When anyone of the users who faced a similar issue reads your post, will respond to you.

Until then, it is better to provide more info such as the event you have in your codes to start the video because I don’t see any blocks related to video in the images you shared.

Happy Thunking!

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 5:32pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/4 "2021-06-29T17:32:18Z")

</div>

Thanks Muneer,

Right now I am looking for some guidance in setting up a code block to start the video when I open the page. Right now the video starts when the page open with no code blocks necessary, however, then no code thread to stop it. I will continue to work on it and post any progress I make.

Thanks so much for your reply. I am feeling a bit lost at the moment. I appreciate your support.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 29, 2021, 5:46pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/5 "2021-06-29T17:46:25Z")

</div>

I just made a quick project with two screens and a video and a button in the first screen and just a button in the second screen to go back to the first screen.

These are the codes for Screen1

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/2/426206be012ef57529e122e466f9c7130740271f.png)

And this is Screen2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f4373a2e985328b90e57fe6c5f322cc0156e522.png)

It works as expected.

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 5:47pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/6 "2021-06-29T17:47:38Z")

</div>

Thanks so much let me give that a shot real quick.

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 5:58pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/7 "2021-06-29T17:58:21Z")

</div>

how do you get (set video1 block) on the first page when the the video is not on page one?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 29, 2021, 6:00pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/8 "2021-06-29T18:00:50Z")

</div>

It’s the first one in the list

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f572101f1da0b8f923caf4d67d5ed89a49bb0d1.png)

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 6:04pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/9 "2021-06-29T18:04:41Z")

</div>

here are my options on page one and two

Here is page one

 ![Screen Shot 2021-06-29 at 1.01.55 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/241c41d2d80645d5403c7685cb88d68b08e1582d.png)

here is page two

 ![Screen Shot 2021-06-29 at 1.02.04 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6aae5cda9d04fd9b486781eaf9348b20411c93ad.png)

I get the video on page two because I have added that component to page two.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 29, 2021, 6:07pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/10 "2021-06-29T18:07:40Z")

</div>

So when you click on `Video1` that is in page 2 (video) screen you will see the `Set Video1 s Video` block.

You need to add this block to the `Screen Opens` event.

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 6:29pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/11 "2021-06-29T18:29:35Z")

</div>

Thanks so much for your help Muneer. This is leading me to the right direction. I will post solved as soon as I can work out the bugs. Thanks so much for your time and effort.

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 6:49pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/12 "2021-06-29T18:49:48Z")

</div>

Well I tried this code, but the audio from the video continues after navigating back to screen 1?

 ![Screen Shot 2021-06-29 at 1.49.19 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/a/6ad9e10f92969a56abd173ebf93304def4749ea1.png)

---

<div class="post-metadata">

### Author: ![dale\_may](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dale_may/32/103087_2.png) [@dale\_may](https://community.thunkable.com/u/dale_may)
#### Post date: [June 29, 2021, 6:59pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/13 "2021-06-29T18:59:22Z")

</div>

Thanks again muneer! You got me there!

 ![Screen Shot 2021-06-29 at 1.57.48 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/1/b15a9634ce04938c4f3173f02a8dafa2f79b3042.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 29, 2021, 7:41pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/14 "2021-06-29T19:41:36Z")

</div>

Yes, this is correct.  
The block to assign a video file to the video player is in the `Screen Opens` event. So every time you navigate back to the screen it will start playing.

If this is not the wanted behavior then you can adjust the blocks to reflect what you want.

---

<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:20pm UTC](https://community.thunkable.com/t/can-i-stop-the-video-player-when-i-navigate-away-from-that-page/1370214/15 "2024-11-08T13:20:02Z")

</div>


