Skip to main content

Time

There are 2 time components

  1. "currentTime"
  2. "duration"

⌛️ Current Time

The currentTime component shows the current time of the video.

Usage

values={{
item1: {
id: 'currentTime',
textColor: '#b7cef4',
},
}}

Current Time Properties

Property NameRequiredAccepted ValuesDescriptionDefault
idYes"currentTime"Used to render the currentTime.undefined
textColorNoAny hex or rgb color codeChanges the text color of currentTime.Calculated from controlsBar barColor property
hideOnMobileNotrue or falseHides the currentTime component when the video's width is less than 768pxfalse
marginLeftNoA string css value for the marginLeft property, ex: '10px', '10rem'Changes the left margin of the currentTime"0"
marginRightNoA string css value for the marginRight property, ex: '10px', '10rem'Changes the left margin of the currentTime"0"

⏳ Duration

The duration component shows the duration of the video.

Usage

values={{
item1: {
id: 'duration',
textColor: '#b7cef4',
},
}}

Duration Properties

Property NameRequiredAccepted ValuesDescriptionDefault
idYes"duration"Used to render the duration.undefined
textColorNoAny hex or rgb color codeChanges the text color of duration.Calculated from controlsBar barColor property
hideOnMobileNotrue or falseHides the duration component when the video's width is less than 768pxfalse
marginLeftNoA string css value for the marginLeft property, ex: '10px', '10rem'Changes the left margin of the duration"0"
marginRightNoA string css value for the marginRight property, ex: '10px', '10rem'Changes the left margin of the duration"0"