Giter Site home page Giter Site logo

Comments (8)

vanand-conga avatar vanand-conga commented on June 15, 2024

Can you please try specifying format.

$buzz.play({
    src: '/api/user/track/audio/9?token=eyJ0eXAiOi',
    format: 'mp3'
});

from musquito.

kyoukhana avatar kyoukhana commented on June 15, 2024

That worked but when doing a promise throws a error still

  $buzz.setup(); // you need to call setup before doing anything in global level.

                var promise = $buzz.load('/api/user/track/audio/9?token='+this.$auth.token());

                promise.then(function(evt) {
                    console.log('All audio resources are loaded');
                    console.log(evt);
                });


                var buzz1 = $buzz({
                    src: '/api/user/track/audio/9?token=eyJ0eXAiOi,
                    format: 'mp3'
                });

                buzz1.play();

from musquito.

vanand-conga avatar vanand-conga commented on June 15, 2024

Will reply you in couple of days.

from musquito.

kyoukhana avatar kyoukhana commented on June 15, 2024

Sure thanks for help.

from musquito.

vanand-conga avatar vanand-conga commented on June 15, 2024

This needs little more work than I thought. I need to change the method so we can pass the format also. Will be available by this week.

from musquito.

kyoukhana avatar kyoukhana commented on June 15, 2024

That is cool. Just take your time ok :) . I have really started working with the library so you might get questions from time too time.

from musquito.

vanand-conga avatar vanand-conga commented on June 15, 2024

Is it possible to send some sample code to reproduce this error locally? or is there is any other option?

from musquito.

kyoukhana avatar kyoukhana commented on June 15, 2024

the problem is in this code part

 $buzz.setup(); // you need to call setup before doing anything in global level.

                var promise = $buzz.load('/api/user/track/audio/9?token='+this.$auth.token());

                promise.then(function(evt) {
                    console.log('All audio resources are loaded');
                    console.log(evt);
                });

problem looking for .mp3 will throw a error

'/api/user/track/audio/9?token='+this.$auth.token()

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.