Skip to content
Discussion options

You must be logged in to vote

@katspaugh Thanks for response.
The reason that we use plagin with vue. We added 'reactive' in index.js and it's working now.
Usually reactivity does not need to be added manually. It's would be great if the plagin was more Vue-friendly.
New 'index.js' file:

import WaveSurfer from "https://unpkg.com/wavesurfer.js@7/dist/wavesurfer.esm.js";
import RegionsPlugin from "https://unpkg.com/wavesurfer.js@7/dist/plugins/regions.esm.js";
import { reactive } from "vue";

export default {
  data: () => ({
    state: reactive({
      surfer: null,
      surferRegions: null,
      reg: null,
    }),
    countregions: null,
  }),
  mounted() {
    this.createSurfer();
  },
  methods: {
    removeregion…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@vbrunko-voc
Comment options

@katspaugh
Comment options

@iskrebzowa-voc
Comment options

Answer selected by katspaugh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants