Constructor
new ThumbnailPositionOnImageHover(imageElement, imageElementDataAttributeWebVTTUrl, timestampTextElement, timestampTextOnPointerLeave)
Provide a mouse controlled thumbnail playback. Construct the object and attach all required event listeners to the image element.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
imageElement |
Object | Image element where event listeners should be attached. | |
imageElementDataAttributeWebVTTUrl |
String | data-src-webvtt | Name of the data attribute in the image element. |
timestampTextElement |
Object | null | Text element to show timestamps as inner text. |
timestampTextOnPointerLeave |
String | Timestamp text that is shown when the pointer leaves the element. |
Extends
- ThumbnailPositionOnElementHover