VideoTime
Since version 4.0.0
Show video current / total time.
class VideoTime extends ControlBarItem
Extends
Properties
Element of the item.
Order within the same position.
The lowest one will be shown first.
Position to display item.
Constructor
Create a new instance.
new VideoTime(options: Partial<ControlBarItemOptions>): VideoTime
Parameters
Options
Properties
element
>=4.0.0
readonlyelementHTMLElement
Element of the item.
order
>=4.0.0
inheritedordernumber
Order within the same position.
The lowest one will be shown first.
position
>=4.0.0
inheritedposition"top-left" | "top-right" | "main-top" | "main-bottom" | "main-left" | "main-right"
Position to display item.
Methods
destroy
>=4.0.0
destroyvoid
destroy(): void
Destroy item and release all resources & event handlers.
init
>=4.0.0
initvoid
init(viewer: View360, controlBar: ControlBar): void
Initialize item.
Parameters
viewer
A instance of viewer to attach item
controlBar
A instance of control bar to attach item