HTML and CSS Reference
In-Depth Information
Figure 11-5 The new Pause button.
Seeking by Using a Slider
You can now control the basic playback of your video, but it would be kind of cool if you could also seek through
the video. To do this, you create a Seek bar using a range slider that's hooked up to an event listener. Every time the
user moves the Seek bar, the action manipulates the video's currentTime property, which moves playback to the
desired point.
The code for this exercise can be found in folder 8.
Let's start by adding the range slider to your HTML:
1. Open the about.html file in your text editor.
Search WWH ::




Custom Search