Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

videojs-wavesurfer

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

videojs-wavesurfer - npm Package Compare versions

Comparing version 0.4.0 to 0.6.0

2

bower.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc