videojs
is a library. Unless you are planning on using a library for this, I'd say no.
The second one could be a possible solution, however we don't have an addEventListener override that supports options. You can solve this with an asm
block for now:
var
el: TJSHTMLElement;
playerNameVideo: TWebMultimediaPlayer;
begin
{...}
playerNameVideo.URL := 'https://www.toolfolks.com/docs/'+ filename + '#t=6';
playerNameVideo.ElementHandle.Properties['preload'] := 'metadata';
el := playerNameVideo.ElementHandle;
asm
el.addEventListener('play', () => {
el.currentTime = 0;
}, { once: true });
end;
end;