videojs-wavesurfer
Advanced tools
Comparing version 0.4.0 to 0.6.0
{ | ||
"name": "videojs-wavesurfer", | ||
"version": "0.4.0", | ||
"version": "0.6.0", | ||
"homepage": "https://github.com/collab-project/videojs-wavesurfer", | ||
@@ -5,0 +5,0 @@ "description": "video.js plugin that adds a navigable waveform for audio files.", |
{ | ||
"name": "videojs-wavesurfer", | ||
"version": "0.4.0", | ||
"version": "0.6.0", | ||
"description": "video.js plugin that adds a navigable waveform for audio files.", | ||
@@ -5,0 +5,0 @@ "main": "videojs.wavesurfer.js", |
@@ -50,2 +50,5 @@ // Copyright Collab 2014 | ||
// start loading spinner | ||
this.player().loadingSpinner.show(); | ||
// customize controls | ||
@@ -56,2 +59,3 @@ this.player().bigPlayButton.hide(); | ||
{ | ||
// progress control isn't used by this plugin | ||
this.player().controlBar.progressControl.hide(); | ||
@@ -68,2 +72,10 @@ | ||
this.player().controlBar.show(); | ||
// disable play button until waveform is ready | ||
this.player().controlBar.playToggle.hide(); | ||
// disable currentTimeDisplay component that constantly tries to reset the value | ||
// to 0 | ||
this.player().controlBar.currentTimeDisplay.disable(); | ||
this.player().controlBar.currentTimeDisplay.el().style.display = 'block'; | ||
} | ||
@@ -221,8 +233,2 @@ | ||
// update duration | ||
this.setDuration(); | ||
// prevent horizontal scrollbar appearing | ||
this.surfer.container.firstChild.style.overflowX = "hidden"; | ||
// make sure the size of time controls is large enough to | ||
@@ -236,2 +242,9 @@ // display milliseconds | ||
// update time display | ||
this.setCurrentTime(); | ||
this.setDuration(); | ||
// enable and show play button | ||
this.player().controlBar.playToggle.show(); | ||
// remove loading spinner | ||
@@ -354,3 +367,5 @@ this.player().removeChild(this.player().loadingSpinner); | ||
this.surfer.drawBuffer(); | ||
// make sure playhead is restored at right position | ||
this.surfer.drawer.progress(this.surfer.backend.getPlayedPercents()); | ||
}, | ||
@@ -357,0 +372,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
537
123013