# How do i loop a player ?

**URL:** <https://forum.rtmaps.com/t/how-do-i-loop-a-player/76>\
**Category:** Data Recording / Data Replay\
**Created:** [April 16, 2024, 3:03pm UTC](https://forum.rtmaps.com/t/how-do-i-loop-a-player/76 "2024-04-16T15:03:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![duorhs](https://forum.rtmaps.com/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@duorhs](https://forum.rtmaps.com/u/duorhs)\
**Post date:** [April 16, 2024, 3:03pm UTC](https://forum.rtmaps.com/t/how-do-i-loop-a-player/76/1 "2024-04-16T15:03:37Z")

</div>

How do i loop a player (video) within the same diagram so that it plays over and over again until a given condition?

---

<div class="post-metadata">

**Author:** ![Teo](https://forum.rtmaps.com/user_avatar/forum.rtmaps.com/teo/32/10_2.png) [@Teo](https://forum.rtmaps.com/u/Teo)\
**Post date:** [April 16, 2024, 3:06pm UTC](https://forum.rtmaps.com/t/how-do-i-loop-a-player/76/2 "2024-04-16T15:06:23Z")

</div>

Hello,

You can use a condition component with its properties configured like this :

![](https://forum.rtmaps.com/uploads/default/original/1X/880f4347b6231274de0aea255f14f860ef380fce.png)

You may want to replace _ **Player\_1** _ by the name of your player.  
You could also use _ **Engine.time** _ instead of player percentage.  
The difference is that the test should be on the total recording length instead of a percentage.

And finally, if you don’t want to shutdown the diagram, you can “go back in time” using _ **Engine.time = 0** _ as the Parse when TRUE value.

For reference here is an article on the condition component :  
[https://support.intempora.com/hc/en-us/articles/115002841074-Condition-component](https://support.intempora.com/hc/en-us/articles/115002841074-Condition-component)

Let me know if you have any question,

Best regards,
