updateVolumeIcon() this.video.volume === 0) volumeBtn.textContent = '๐'; else if (this.video.volume < 0.5) volumeBtn.textContent = '๐'; else volumeBtn.textContent = '๐';
.video-player video width: 100%; height: auto; display: block; video player using javascript
updateTimestamp() const timestamp = document.querySelector('.progress-timestamp'); const currentTime = this.formatTime(this.video.currentTime); const duration = this.formatTime(this.video.duration); timestamp.textContent = $currentTime / $duration ; updateVolumeIcon() this