# How to control Seek on Media Player?

**URL:** <https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, UE4-27, question\
**Created:** [June 13, 2022, 6:48am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565 "2022-06-13T06:48:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 6:48am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/1 "2022-06-13T06:48:04Z")

</div>

How to control seek on Media Player?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/8/118c87d7c351fddabf11bca9681066fd327c14ab.png)

i adjusted it to play video seek after 5th minuts but its not working.  
My video is playing from beginning. I don’t want to play video from beginning.  
i just want to play video from 5th minuts.

So how to do that?

Like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/9/87971ab84b42a82bb66a3723bea583dac2bc7c7a.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:16am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/2 "2022-06-13T07:16:49Z")

</div>

tl;dr:

put 1 in Days

long read:

> [@Datetime + Datetime returns only the A input](https://forums.unrealengine.com/t/datetime-datetime-returns-only-the-a-input/486054/2):
>
> Hard to tell without seeing the script but it’s easy to invalidate the date time node as it’s very specific: None of the above are valid. There is no year 0, month 0 or day 0. There is no 32nd day and there can be no 14th month… #gregorianbros this is fine: [343809-screenshot-2.png] but this is not: [343810-screenshot-3.png] There is no such thing as 60 minutes… ¯\_ (ツ)\_/¯ Consider the above when adding Date Time. This adds 5 days: …

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 7:22am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/3 "2022-06-13T07:22:27Z")

</div>

@Everynone maybe i explain wrong.  
i only need to play at what minuts i want on video Seek. Not real time date or time

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:23am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/4 "2022-06-13T07:23:06Z")

</div>

Did you try putting 1 in Days? I know the `Date Time` would otherwise be invalid. ~~Perhaps it’s the same with `Time Span`. Worth trying.~~

Looks like I’m wrong.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 7:26am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/5 "2022-06-13T07:26:00Z")

</div>

@Everynone sorry for my bad english.  
i only need to play at what minuts i want on video Seek. Not real time date or time

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/b/15b52dcb0d7fc4a681b7aa5eb1e0ebf08be5471f.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:26am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/6 "2022-06-13T07:26:19Z")

</div>

Flip the node order around. Open first and then seek. Perhaps there’s nothing to seek if the media is yet to be loaded.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 7:30am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/7 "2022-06-13T07:30:35Z")

</div>

@Everynone i did what you said.  
but its not working.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/9/d79984760bffab930db19017fb6bc58ee7173e7f.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:32am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/8 "2022-06-13T07:32:47Z")

</div>

Assuming the vid is, indeed, 10 minutes long, this should work. I’ll have a look and get back to you a little bit later.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 7:35am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/9 "2022-06-13T07:35:49Z")

</div>

@Everynone ok thank you for your time.

this video Details:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/2/51259fdf79561050a381ac4b85a4340662f7fd89.png)

i need to control my video Seek minutes.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:52am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/10 "2022-06-13T07:52:04Z")

</div>

Got it. It’s, kind of, an Unreal thing. The video does not seek because there was no time to load it. Try this:

- Open Source
- Delay .2s (may need longer for laaarge files and slow machines)
- Seek

* * *

You can use the Seek’s `Return Value` + Branch to query whether `Seek` was successful:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/f/d5fe75f6e77146139aa66d98b718c96007dcd3c4.png)

This should make it work with any files size.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [June 13, 2022, 7:56am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/11 "2022-06-13T07:56:38Z")

</div>

@Everynone thank you it worked like charm!  
i just add 0.2 delay

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/3/233f183972e6b226c642cbc330d25dfd5787bfa9.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/7/d574c031071c32b38ed9a91933d11e1bda34fe66.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [June 13, 2022, 7:58am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/12 "2022-06-13T07:58:01Z")

</div>

Alternatively:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/5/b051273b0c463e57d32c2ea8c61e25ed3cc3ea6e.png)

Use the latent node instead, it will only execute the script once the data is loaded.

---

<div class="post-metadata">

**Author:** ![GreeyaJini](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/greeyajini/32/618627_2.png) [@GreeyaJini](https://forums.unrealengine.com/u/GreeyaJini)\
**Post date:** [October 7, 2023, 10:38am UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/13 "2023-10-07T10:38:36Z")

</div>

hi there umm it didnt work for me I donno where I am wrong can you help?

 ![Screenshot 2023-10-07 160713](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/d/b9d473ef3188fa04a23556ce00d2e352e0377164.png)  
 ![Screenshot 2023-10-07 1607 Screenshot 2023-10-07 153600|690x373 23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/7/7b7f9f743f43286585967d76abd9e9042ea51f89.png)  
but it is not playing the video

---

<div class="post-metadata">

**Author:** ![nettleflap](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@nettleflap](https://forums.unrealengine.com/u/nettleflap)\
**Post date:** [October 17, 2024, 6:34pm UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/14 "2024-10-17T18:34:54Z")

</div>

In case anyone needs it, I solved this by binding to the OnMediaOpened event after OpenSource or OpenPlaylistIndex (any function that opens new media), calling Seek in the bound event, and unbinding right after.

---

<div class="post-metadata">

**Author:** ![iholtumCortina](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@iholtumCortina](https://forums.unrealengine.com/u/iholtumCortina)\
**Post date:** [November 19, 2024, 8:05pm UTC](https://forums.unrealengine.com/t/how-to-control-seek-on-media-player/580565/15 "2024-11-19T20:05:18Z")

</div>

I have a similar issue. I load a video by passing a file location to OpenURL and waiting for the OnMediaOpened event to fire. Once this occurs, I play the video and it works great.  
The trouble is if I want to rewind the video before playing or seek to a specific time and then play, it does not play. Any ideas why this would not work?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/0/220c0c34df697fd7990c3ca1cc497a5bebec8232.png)
