<media-time-display> 
    
      On this page  
    Display only component to show the time of the playhead.
Default 
< media-time-display ></ media-time-display > Current time of 2 minutes 
< media-time-display   mediacurrenttime = "120.0" ></ media-time-display > Current time of one hour 
< media-time-display   mediacurrenttime = "3600.0" ></ media-time-display > Include duration (10 minutes) 
< media-time-display    mediacurrenttime = "120"    mediaduration = "600"    showduration ></ media-time-display > Show remaining time (at 2 minutes of 10) 
< media-time-display    mediacurrenttime = "120"    mediaduration = "600"    remaining ></ media-time-display > 
      
        
          Name 
          Type 
          Description 
         
       
      
        
                  disabledbooleanThe Boolean disabled attribute makes the element not mutable or focusable. 
                 
                  remainingbooleanToggle on to show the remaining time instead of elapsed time. 
                 
                  showdurationbooleanToggle on to show the duration. 
                 
                  mediacontrollerstringThe element `id` of the media controller to connect to (if not nested within). 
                 
       
    
      The media UI attributes will be set automatically by the controller if they are
      connected via nesting or the mediacontroller attribute.
      Only set these attributes manually if you know what you're doing.
    
      
        
          Name 
          Type 
          Description 
         
       
      
        
                  mediacurrenttimestring Set to the current media time. 
                 
                  mediadurationstring Set to the media duration. 
                 
                  mediaseekablestring Set to the seekable time ranges. 
                 
       
    
      
        
          Name 
          Default 
          Description 
         
       
      
        
                  --media-time-display-displayinline-flex`display` property of display. 
                 
                  --media-control-hover-background`background` of control hover state. 
                 
                  --media-primary-colorrgb(238 238 238)Default color of text. 
                 
                  --media-secondary-colorrgb(20 20 30 / .7)Default color of background. 
                 
                  --media-text-colorvar(--media-primary-color, rgb(238 238 238))`color` of text. 
                 
                  --media-control-display`display` property of control. 
                 
                  --media-control-backgroundvar(--media-secondary-color, rgb(20 20 30 / .7))`background` of control. 
                 
                  --media-control-padding10px`padding` of control. 
                 
                  --media-control-height24px`line-height` of control. 
                 
                  --media-fontvar(--media-font-weight, normal) var(--media-font-size, 14px) / var(--media-text-content-height, var(--media-control-height, 24px)) var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif)`font` shorthand property. 
                 
                  --media-font-weightnormal`font-weight` property. 
                 
                  --media-font-familyhelvetica neue, segoe ui, roboto, arial, sans-serif`font-family` property. 
                 
                  --media-font-size14px`font-size` property. 
                 
                  --media-text-content-heightvar(--media-control-height, 24px)`line-height` of text. 
                 
       
    
   
  
    More