How do I change the current time in a video?

I've been using this code to start a video:
JavaScript:
Video.play("movies/something.webm");
I'm doing it like this so I can skip the video with a button press using a parallel event and have other events running in the background.
I'm also trying to have the video start at a specific time in its duration, but the script that I thought would do that won't work. Instead, it just starts from the beginning like it's not even there. This is the full script I'm using:
JavaScript:
Video.play("movies/something.webm");
document.getElementById("gameVideo").currentTime = 5
I'm guessing it has something to do with your event process.
The button-press conditional branch should be in a separate event; or at least switched to another event page with a different trigger.
The video plays once. The button-press conditional branch loops as a parallel process.
This is what my event process looks like:
Code:
//Event Page 1 (Trigger: Action Button)
◆Common Event : PlayMovie00
Code:
//Common Event: PlayMovie00 (Trigger: None)
◆Control Switches : #0010 MoviePlaying = ON
◆Script : Video.play("movies/Movie00.webm");
:        : document.getElementById("gameVideo").currentTime = 5; //This part doesn't seem to do anything
Code:
//Event Page 2 (Switch: 0010 MoviePlaying, Trigger: Parallel)
◆If : Button [Cancel] is being pressed
  ◆Script : document.getElementById("gameVideo").currentTime = 11;
  :        : document.getElementById("gameVideo").pause();
  :        : Video._updateVisibility(false);
  ◆Control Switches : #0010 MoviePlaying = OFF
  ◆
: End
Playing and skipping the movie both work fine, but the part I put a comment on doesn't do anything. No matter how I change the value on that line it doesn't change when the video starts. Is there something wrong with my event process or is it something else?
Strange, it should work. I recreated it as you've done it and it works for me.
Perhaps the event is too quick and needs a little more time between starting the video and changing the time? Maybe put the second line in a separate script block. Wait a frame or 2 in-between. See what happens?

I've been experimenting and found some other weird things I can't explain. If I set a time before playing the video, even using the event command [Play Movie], it'll start from that time too. But only the first time. After that, repeating the event, the video will start at the beginning after that.
I tried putting a wait command between the two script blocks and it still doesn't work. I also tried setting a time before playing the video and that still didn't change anything.

I'm starting to think that the problem might be with how I converted my video file to .webm if that's the only thing different between my process and yours. I used VLC media player and it took an hour to convert a minute. Did you use a different program to do it?
I tried putting a wait command between the two script blocks and it still doesn't work. I also tried setting a time before playing the video and that still didn't change anything.

I'm starting to think that the problem might be with how I converted my video file to .webm if that's the only thing different between my process and yours. I used VLC media player and it took an hour to convert a minute. Did you use a different program to do it
aaaand converting it with an online converter solved the whole issue. I'm not using VLC with .webm ever again. 😔

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-change-the-current-time-in-a-video.149506/