# Detect Video Stop or Restart Video After Completion

**URL:** <https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533>\
**Category:** Questions about Thunkable X\
**Created:** [April 3, 2020, 10:01pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533 "2020-04-03T22:01:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![athornock](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@athornock](https://community.thunkable.com/u/athornock)\
**Post date:** [April 3, 2020, 10:01pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/1 "2020-04-03T22:01:14Z")

</div>

Is there a way to do one of the following: 1) detect when a video has stopped at the end of the video or 2) start it back at the start of the video when it’s complete?

It’s weird and cumbersome in the UX to have to use the scroll bar to scroll a video back to the start after it’s done playing.

I’ve tried using while and forever blocks with the “from Video get Play” block. The get Play block doesn’t seem to switch to false when it’s not playing or when it’s completed.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 3, 2020, 10:09pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/2 "2020-04-03T22:09:47Z")

</div>

Start it back as in a loop, like a gif?

---

<div class="post-metadata">

**Author:** ![athornock](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@athornock](https://community.thunkable.com/u/athornock)\
**Post date:** [April 3, 2020, 10:30pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/3 "2020-04-03T22:30:51Z")

</div>

Not so much loop, but make it so that if you push play again it starts the video over. Right now you have to use the video time slider to slide it back to the start and then push play.

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 4, 2020, 7:23pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/4 "2020-04-04T19:23:29Z")

</div>

hmmm is the video the only thing on the page? Maybe if the video finishes you could set the app to travel again to that same screen and that might be a work around?

Or if the video starts when the page opens you could try a loop?

---

<div class="post-metadata">

**Author:** ![athornock](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@athornock](https://community.thunkable.com/u/athornock)\
**Post date:** [April 7, 2020, 1:53pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/5 "2020-04-07T13:53:00Z")

</div>

The only problem is I can’t tell when the video is going to end. There’s no way to detect it that I’ve figured out.

---

<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:** [April 7, 2020, 4:13pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/6 "2020-04-07T16:13:25Z")

</div>

Is it the same video every time?

It would be cool to see a block snippet for

```
Get is video1 playing: true/false

```

---

<div class="post-metadata">

**Author:** ![athornock](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@athornock](https://community.thunkable.com/u/athornock)\
**Post date:** [April 7, 2020, 9:24pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/7 "2020-04-07T21:24:29Z")

</div>

No, unfortunately, different videos. User recorded.

Yes it would be great to have that block. I second that!

---

<div class="post-metadata">

**Author:** ![fflow](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@fflow](https://community.thunkable.com/u/fflow)\
**Post date:** [August 15, 2020, 9:37pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/8 "2020-08-15T21:37:32Z")

</div>

Same issues/requests here. One more, kind of related. I can’t seem to get ‘set play’ to switch to false using any method recommended. Worse, if a video is playing and you navigate away from the screen before it ends, the sound keeps playing in the background until the end of the video.

---

<div class="post-metadata">

**Author:** ![thunkable.com6ejt](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/thunkable.com6ejt/32/83368_2.png) [@thunkable.com6ejt](https://community.thunkable.com/u/thunkable.com6ejt)\
**Post date:** [September 23, 2020, 4:10am UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/9 "2020-09-23T04:10:12Z")

</div>

+1, could really use this feature. I’m playing video messages between users, and it’s not a great experience for them to have to drag the scrubber all the way back to the beginning.

---

<div class="post-metadata">

**Author:** ![dheerajsingh1107u](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dheerajsingh1107u/32/86421_2.png) [@dheerajsingh1107u](https://community.thunkable.com/u/dheerajsingh1107u)\
**Post date:** [January 5, 2021, 4:35am UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/10 "2021-01-05T04:35:44Z")

</div>

Hey guys anyone got solution for this?  
I think there should a on video completion block as they have it on MIT app inventor.

---

<div class="post-metadata">

**Author:** ![leevonkk](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@leevonkk](https://community.thunkable.com/u/leevonkk)\
**Post date:** [February 3, 2023, 6:42pm UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/11 "2023-02-03T18:42:07Z")

</div>

To do this, make a While Loop:  
While Video’s Play = True: Wait 1 Second

Below the loop, put whatever you want to happen after the video has finished playing (e.g. replay the video from the start, or start a new video, etc.)

Edit:  
Note: if the user hits the pause button on the video, this will be detected by the app as the same thing as the video completing. This will probably be a problem for most.

---

<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, 11:39am UTC](https://community.thunkable.com/t/detect-video-stop-or-restart-video-after-completion/554533/12 "2024-11-08T11:39:17Z")

</div>


