Element that displays media's current time being played.
It will change to Live Broadcast
if duration is Infinity.
Element that separates current time and duration labels.
It will be hidden if duration is Infinity.
Element that displays media's total duration.
It will be hidden if duration is Infinity.
Instance of OpenPlayer.
Create HTML and insert it into OpenPlayer's DOM.
This method must include its events setup.
Remove HTML associated to specific OpenPlayer's element.
This method must include the removal of its previously set events.
Events that will be triggered in Time element:
controlschanged
event is triggered).loadedmetadata
, progress
and timeupdate
events).Generated using TypeDoc
Time element.
Class that renders media's current time and duration in human-readable format (hh:mm:ss), and if media is a live streaming, a
Live Broadcast
message will be displayed.https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime
https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration
Time
PlayerComponent