setting currentTime for the video in electron not work

When I set currentTime for the video tag in electron for the first time, currentTime will become 0. I need to delete the video tag and create it again to set it correctly.
Also, I cannot change the current time by controlling the progress bar for the first time.

I found similar questions on the Internet, but unfortunately there is no official answer.
↓↓↓
https://github.com/electron/electron/issues/39671

The problem is with the electronic software. If it runs on the web page, there will be no problem.

Is there a property or method, or an electronic version, that can solve this problem?