Class: ThumbnailPositionOnElementHoverViaTimestamp

.thumbnail.ThumbnailPositionOnElementHoverViaTimestamp(timeElementSelector)

Overwrite the default ThumbnailPositionOnElementHover class and replace the referenced element. Here, a time element is used to show thumbnails referenced in a webVTT file. It is based on the inner text of an html element that indicates the time when hovering the seek bar.

Constructor

new ThumbnailPositionOnElementHoverViaTimestamp(timeElementSelector)

Note: This class is based on class inheritance. Only new initialized or removed parameters are described here. Observe: showNextThumbnailEveryNthPixel can be omitted, as it is not used in the coverPointerHover_() method defined here.
Parameters:
Name Type Description
timeElementSelector Object Selector of time element that contains the timestamp as innerText.
Author:
Source:

Extends

  • ThumbnailPositionOnElementHover