Comments (8)
Can you please try specifying format
.
$buzz.play({
src: '/api/user/track/audio/9?token=eyJ0eXAiOi',
format: 'mp3'
});
from musquito.
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.
Will reply you in couple of days.
from musquito.
Sure thanks for help.
from musquito.
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.
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.
Is it possible to send some sample code to reproduce this error locally? or is there is any other option?
from musquito.
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)
- How to amplify a low volume sound? HOT 2
- loading songs into a playlist HOT 3
- How to change sprite/sound done event to support callbacks? HOT 2
- Random error: Cannot read property 'allocated' of undefined HOT 4
- Preloading a bunch of files?
- Google Chrome 70 HOT 3
- How to play sounds from imported source when run locally? HOT 5
- Has issues streaming, but not preloading HOT 3
- Event handlers never get fired HOT 4
- Record audio output to mediastream? HOT 6
- Cannot get Musquito to accept a data URI HOT 4
- Percent Loaded HOT 2
- Not working in Vue Project HOT 6
- I tired the percent loaded but I get errors HOT 14
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musquito.