Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 856 Bytes

File metadata and controls

21 lines (16 loc) · 856 Bytes

Time

The Time component displays the current, remaining, and total media time. Users can click the time element to toggle between representations, including optional frame display and prefix indicators. It dynamically updates based on playback state and disables itself during live streams or playback errors.

Configuration

Configuration example with defaults:

const playerConfig = {
    time: {
        display: 'current',
        showFrames: false
    }
};
Setting Name Type Description
display String Sets the default mode: 'current' or 'remaining'.
showFrames Boolean If true, enables high-frequency updates to show frame-accurate timing.