MCPcopy Index your code
hub / github.com/JavaCS3/xterm-player / _updateVolume

Method _updateVolume

src/ui/ControlBarView.ts:118–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 this._progressBar.progress = this.currentTime / this.duration
117 }
118 private _updateVolume() {
119 if (this._player.muted) {
120 this._volume.innerHTML = Icons.VolumeMute
121 return
122 }
123 const v = this._player.volume
124 if (v >= 0.95) {
125 this._volume.innerHTML = Icons.VolumeHigh
126 } else if (v > 0) {
127 this._volume.innerHTML = Icons.VolumeLow
128 } else {
129 this._volume.innerHTML = Icons.VolumeMute
130 }
131 }
132}

Callers 2

constructorMethod · 0.95
etFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected