Markers

November 13, 2017 ยท View on GitHub

Overview

This plugin allows you to create Visual Cues in the progress time rail.

Also, allows you to register a custom callback function that will be triggered every time the media reaches a marker.

The MediaElementPlayer object and media's current time should be passed to the registered callback function.

The marker color is configurable.

Keyword to use it

features: [..., 'markers']

API

ParameterTypeDefaultDescription
markerColorstring#E9BC3DSpecify the color of marker in hexadecimal code
markerWidthnumber1Specify the width of marker in pixels
markersarray[]List of numbers to specify marker times in seconds
markerCallbackfunctionfunction(media, time) {}Callback function invoked when a marker position is reached