
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
vue-wavesurfer-player
Advanced tools
Simple Vue wraper for wavesurfer.js
//main.js
import { createApp } from 'vue'
import App from './App.vue'
import WavesurferPlugin from './WavesurferPlugin';
const app = createApp(App);
app.use(WavesurferPlugin);
app.mount('#app')
import type { WavesurferOptions } from "vue-wavesurfer-player/dist/components/WavesurferOptions";
//import styles
<style>
@import 'vue-wavesurfer-player/styles.css';
</style>
let options: WavesurferOptions = {
waveColor: "violet",
progressColor: "purple",
scrollParent: false,
backend: "WebAudio",
barHeight: .8,
cursorWidth: 3,
cursorColor: "#eb7ee9",
height: 64,
barWidth: 0.1,
barGap: 1.5
} as WavesurferOptions;
<Wavesurfer
class="wave-surfer-item"
:options="wavesurferOption1"
src="./../soundEffect.wav"
effectName="Cick effect"
></Wavesurfer>
// or with base64 file
<Wavesurfer
class="wave-surfer-item"
:options="wavesurferOption2"
:srcBase64="fileAsBlob"
effectName="Cick effect 2"
></Wavesurfer>
by adding: ref="playerRef"
like
<Wavesurfer
ref="playerRef"
class="wave-surfer-item"
:options="wavesurferOption2"
:srcBase64="fileAsBlob"
effectName="Cick effect 2"
></Wavesurfer>
you can access functions like:
this.$refs.playerRef.loadBlob(this.fileAsBlob2);
this.$refs.playerRef.loadFile("your_file_url");
this.$refs.playerRef.getDurationInMiliSeconds();
FAQs
Simple Vue wraper for wavesurfer.js
The npm package vue-wavesurfer-player receives a total of 7 weekly downloads. As such, vue-wavesurfer-player popularity was classified as not popular.
We found that vue-wavesurfer-player demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.