Giter Site home page Giter Site logo

Not working in Vue Project about musquito HOT 6 CLOSED

vjai avatar vjai commented on June 18, 2024
Not working in Vue Project

from musquito.

Comments (6)

VJAI avatar VJAI commented on June 18, 2024

Will look into it and update you shortly.

from musquito.

kyoukhana avatar kyoukhana commented on June 18, 2024

Thanks. Yea looking forward in using this library.

from musquito.

VJAI avatar VJAI commented on June 18, 2024

This is fixed and available in version 2.0.1. I tested in your App.vue file and the sound played.

<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <button v-on:click="play">Play</button>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
import $buzz from 'musquito';

export default {
  name: 'App',
	methods: {
		play: function (event) {
			var buzz = $buzz('bg.mp3');
			console.log(buzz);
			buzz.play();
		}
	},
  components: {
    HelloWorld
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>

from musquito.

kyoukhana avatar kyoukhana commented on June 18, 2024

I just confirmed. Its working now. What was the issue.

from musquito.

VJAI avatar VJAI commented on June 18, 2024

The index.js file that exports the $buzz was missing. It's added now.

from musquito.

VJAI avatar VJAI commented on June 18, 2024

Please free to create new ticket if there are any issues. Closing this.

from musquito.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.