Comments (4)
What would be truly sick is if, when playing a live stream as opposed to a regular mp3 file, it would automatically switch the waveform display out for an animated spectrum analyzer instead. It could use the exact same settings (bar width, space, colour etc) as you define when you init the player. But instead of rendering the peaks it would hook in the webaudio api and render an animated spectrum display. :)
from waveplayer.
I have to think about this one for a bit. Since the waveform for a live radio stream is not completely known (you only know its history) it isn't even possible to render the true waveform of the live stream. You could of course render a faux waveform, but yeah, skipping the playback head then no longer makes sense.
It wouldn't be too hard to allow for loading a custom image instead, but I think this is going beyond what I initially envisioned waveplayer to be: a web based audio player with a waveform display. If you take the waveform display out of it, it is just an ordinary audio player essentially and I am sure there are quite a few of those around.
Regarding the spectrum analyzer idea. Yes, this would be cool, but again it goes beyond what I envisioned waveplayer to be in essence. Also, I'd have to think how this could be integrated cleanly within the current code base. A sort of API plugin system like wavesurfer offers would make this more easy, but this doesn't exist within waveplayer (although I have thought about implementing it in the past, as I really liked the idea). But this is a lot of work for a small library with a small following like this. I just don't have time for it at the moment unfortunately.
from waveplayer.
Thanks Michael, totally understand what you are saying with regards to time constraints and it being a project with a small user base. With that in mind would you consider some freelance work on a project that I'm developing? If so, please let me know how we can get in touch to discuss it further.
from waveplayer.
Sure, I'd be interested to hear more about this. I have quite a lot of other freelance work going at the moment, but I'm alway open to discuss new interesting projects.
from waveplayer.
Related Issues (12)
- wave player can I used for video? HOT 2
- Load waveform but defer loading of audio file until Play is clicked HOT 4
- Refactor project
- How to render multiple waveforms in one page correctly? HOT 3
- draw timeline on x asis HOT 1
- Write tests
- Replace audio files for examples
- Current position / time display? HOT 10
- Request : Option to turn bars gradient on and off HOT 2
- Option to disable bar colour gradient
- Method for passing in JSON peaks on render HOT 3
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 waveplayer.