How to control Seek on Media Player?

How to control seek on Media Player?

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:

tl;dr:

put 1 in Days

long read:

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

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.

@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

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

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

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.

@Everynone ok thank you for your time.

this video Details:

i need to control my video Seek minutes.

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:

This should make it work with any files size.

2 Likes

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

1 Like

Alternatively:

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

3 Likes

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



but it is not playing the video

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.