# Video loop question

**URL:** <https://discourse.processing.org/t/video-loop-question/4263>\
**Category:** Libraries\
**Created:** [October 8, 2018, 10:07pm UTC](https://discourse.processing.org/t/video-loop-question/4263 "2018-10-08T22:07:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FerrariLuigi](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Post date:** [October 8, 2018, 10:07pm UTC](https://discourse.processing.org/t/video-loop-question/4263/1 "2018-10-08T22:07:58Z")

</div>

Dear all,  
How to count the loop number of a playing video ?  
I want to repeat the video for 3 times. How to stop it ?

thank you very much for your help and cooperation,  
regards.

---

<div class="post-metadata">

**Author:** ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)\
**Post date:** [October 9, 2018, 9:20am UTC](https://discourse.processing.org/t/video-loop-question/4263/2 "2018-10-09T09:20:40Z")

</div>

Look there, is similar than yours [video library example](https://processing.org/reference/libraries/video/Movie_time_.html)

---

<div class="post-metadata">

**Author:** ![FerrariLuigi](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@FerrariLuigi](https://discourse.processing.org/u/FerrariLuigi)\
**Post date:** [October 9, 2018, 9:55am UTC](https://discourse.processing.org/t/video-loop-question/4263/3 "2018-10-09T09:55:20Z")

</div>

ok, thank you.  
But is there any video property lik loopCount o similar ?  
Time measure is not so precise …

thank you

---

<div class="post-metadata">

**Author:** ![matheplica](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/matheplica/32/21035_2.png) [@matheplica](https://discourse.processing.org/u/matheplica)\
**Post date:** [October 9, 2018, 2:00pm UTC](https://discourse.processing.org/t/video-loop-question/4263/4 "2018-10-09T14:00:24Z")

</div>

I don’t think so …

---

<div class="post-metadata">

**Author:** ![Dennis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dennis/32/1111_2.png) [@Dennis](https://discourse.processing.org/u/Dennis)\
**Post date:** [October 9, 2018, 2:19pm UTC](https://discourse.processing.org/t/video-loop-question/4263/5 "2018-10-09T14:19:06Z")

</div>

```auto
if (myMovie.time() == myMovie.duration()) {
count++;
}

```

it colud be?  
maybe putting a trigger…

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [October 9, 2018, 7:36pm UTC](https://discourse.processing.org/t/video-loop-question/4263/6 "2018-10-09T19:36:05Z")

</div>

- [Forum.Processing.org/two/discussion/14990/movie-begin-and-end-events#Item\_1](http://Forum.Processing.org/two/discussion/14990/movie-begin-and-end-events#Item_1)
