HTML5 Video pause and rewind?

You can get a reference to your jquery video element upon opening it (or closing the popup) and pause it using pause(), and then set the "currentTime" property to 0 to go back to the beginning Here's a reference to the documentation for currentTime here's a code sample: var mediaElement = document. GetElementById("video"); mediaElement.pause(); mediaElement. CurrentTime = 0.

You can get a reference to your jquery video element upon opening it (or closing the popup) and pause it using pause(), and then set the "currentTime" property to 0 to go back to the beginning. Here's a reference to the documentation for currentTime. Here's a code sample: var mediaElement = document.

GetElementById("video"); mediaElement.pause(); mediaElement. CurrentTime = 0.

This doesn't work at all: document. GetElementById('video') { this. CurrentTime = 0; } What am I doing wrong?

Any jQuery option? – Alejandro Ar Oct 21 at 18:30 @AlejandroAr try this if your video tag id is 'video'. Var mediaElement = document.

GetElementById("video"); mediaElement.pause(); mediaElement. CurrentTime = 0; – Chris Ching Oct 21 at 18:51 @AlejandroAr With jquery, you can do $('#videoId'). Get(0).pause(); $('#videoId').

Get(0). CurrentTime = 0; – Chris Ching Oct 21 at 18:58 Works like a charm! Thanks a lot Chris!

– Alejandro Ar Oct 21 at 19:00.

Just call the pause() method of the video element. To reset the time, set currentTime to 0 (or any other value if needed, in seconds).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions