audiocogs / jsmad Goto Github PK
View Code? Open in Web Editor NEWDeprecated. Please use mp3.js.
Home Page: https://github.com/audiocogs/mp3.js
Deprecated. Please use mp3.js.
Home Page: https://github.com/audiocogs/mp3.js
Mad.Player
needs some hooks so that people can add visualizations or whatever postprocessing to the audio.
That's the mp3 that fails.
Here is the direct link: https://soundcloud.com/sasha-go-hard/09-no-time-prod-by-tony
This is because it's trying to do subarray on something that isn't a typed array. I have a fix ready.
The way I have hacked track switch is a kill() followed by another playUrl(). This is obviously isn't optimal and there has to be some kind of way to switch the streams and have it play gracefully from the new stream. The way it works now 1 or 2 seconds of the previous track play when it switches to the next.
Any ideas/help hints would be much appreciated. This works stellar even in the face of that one issue ๐
the readme indicates that only MPEG-1 Layer III is supported, but when I tried an mp2 ( MPEG-1 Layer II - http://en.wikipedia.org/wiki/MPEG-1_Audio_Layer_II) in the demo, it worked just fine. Is this an accident, or did someone make a fix to enable Layer II?
when a file's end is reached, jsmad throws
Uncaught Header decoding failed
Mad.Frame.decodeframe.js:366
refillplayer.js:62
(anonymous function)player.js:92
AUDIOLIB.SinkClass.processaudiolib.js:2550
bufferFill
then it starts throwing
Uncaught TypeError: Cannot read property 'flags' of null
Mad.Frame.decodeframe.js:362
refillplayer.js:62
(anonymous function)player.js:92
AUDIOLIB.SinkClass.processaudiolib.js:2550
bufferFill
hi, i had a quick look at the sources and it looks to me as if you are expecting what ever file is played, to be loaded completely.
how can i use jsmad to play a live stream?
i want to use it to play live captured system audio for my h264 remote console
-> https://www.youtube.com/watch?v=nDuHEMA5uSw
Refering to https://github.com/ofmlabs/jsmad/blob/master/src/frame.js#L111
Specs says that the 16-bit crc comes after the frame header. Therefore the skip should be located at https://github.com/ofmlabs/jsmad/blob/master/src/frame.js#L172.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.