Video back to start?


(frank-edouard wozniak) #1

hello hypesters…

is there a best way to set a video back to start after playing ?

I try several ways but can’t make it !

merci !

f e w


(Hans-Gerd Claßen) #2

add an id id to your video and run

hypeDocument.getElementById("yourID").currentTime = 0;


(frank-edouard wozniak) #3

thank you very much sir !

is there a list of possible commands ? (like .currentTime = 0;) somewhere ?

just to play around…

merci !


#4

Here’s a list of available commands: https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement & https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement (for the video element specifically)


(frank-edouard wozniak) #5

Thanks daniel !