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:
@Everynone maybe i explain wrong.
i only need to play at what minuts i want on video Seek. Not real time date or time
Everynone
(Everynone)
June 13, 2022, 7:23am
4
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
Everynone
(Everynone)
June 13, 2022, 7:26am
6
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.
Everynone
(Everynone)
June 13, 2022, 7:32am
8
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.
Everynone
(Everynone)
June 13, 2022, 7:52am
10
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
Everynone
(Everynone)
June 13, 2022, 7:58am
12
Alternatively:
Use the latent node instead, it will only execute the script once the data is loaded.
3 Likes
GreeyaJini
(GreeyaJini)
October 7, 2023, 10:38am
13
hi there umm it didnt work for me I donno where I am wrong can you help?
but it is not playing the video
nettleflap
(nettleflap)
October 17, 2024, 6:34pm
14
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.