Class: shaka.ui.StatisticsButtonBase

Constructor

new StatisticsButtonBase(parentnon-null, controlsnon-null, buttonClass, containerClass)

Parameters:
Name Type Description
parent HTMLElement
controls shaka.ui.Controls
buttonClass string CSS class added to the button element
containerClass string CSS class added to the stats container
Extends:
Source:

Extends

Members

isSubMenu :boolean

Type:
  • boolean
Overrides:
Implements:
Source:

isSubMenuOpened :boolean

Type:
  • boolean
Overrides:
Implements:
Source:

parent :HTMLElement

Type:
  • HTMLElement
Overrides:
Implements:
Source:

statsButton :HTMLButtonElement

Type:
  • HTMLButtonElement
Source:

statsContainer :HTMLElement

Type:
  • HTMLElement
Source:

statsDisplayedElements :Map<string, HTMLElement>

Type:
  • Map<string, HTMLElement>
Source:

statsHeaderTitle :HTMLElement

Type:
  • HTMLElement
Source:

statsList :Array

Type:
  • Array
Source:

statsNameSpan :HTMLElement

Type:
  • HTMLElement
Source:

statsParseFrom :Map<string, function(string): string>

Type:
  • Map<string, function(string): string>
Source:

statsStateSpan :HTMLElement

Type:
  • HTMLElement
Source:

Methods

buildStatsContainerHeader()

Appends the shared header (title span + close icon) to the container. Subclasses call this at the top of their loadContainer_() implementation.
Source:

generateStatComponent(name) → {HTMLElement}

Creates a label+value row for one stat and registers it for updates.
Parameters:
Name Type Description
name string
Source:
Returns:
Type
HTMLElement

toggleContainer()

Toggles the stats container visibility and the periodic update timer.
Source:

updateStatsDisplay()

Source: