Giter Club home page Giter Club logo

Comments (6)

jsantell avatar jsantell commented on July 29, 2024

Not in the current implementation -- in the next version, yes, and this is something I'd like to see!

from dancer.js.

japboy avatar japboy commented on July 29, 2024

Cool! Looking forward to it 👍

from dancer.js.

hampusohlsson avatar hampusohlsson commented on July 29, 2024

Any updates on this?

from dancer.js.

jsantell avatar jsantell commented on July 29, 2024

This project as a whole needs to be revamped to support the current state of web audio, which is now much different than it was two years ago... have been investigating best way to go about it, which will include all these new sources though :)

from dancer.js.

hampusohlsson avatar hampusohlsson commented on July 29, 2024

@jsantell What are your thoughts? I'll be happy to help/contribute.

from dancer.js.

theunknownartisthour avatar theunknownartisthour commented on July 29, 2024

Not 100% certain if this'll help, but you might consider https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Visualizations_with_Web_Audio_API#Creating_a_frequency_bar_graph

This is currently cross compatible between firefox and chrome and uses a microphone, which I assume is at least partially similar to a live-stream, may be helpful.

Speaking of: if you update the adapterWebAudio.js with some try catch you'll find Chrome supports live-streams.

  this.audio.addEventListener( 'progress', function ( e ) {
    if ( e.currentTarget.duration ) {
      try{/*e.currentTarget.seekable.end() doesn't exist for stream sources on chrome*/
        _this.progress = e.currentTarget.seekable.end( 0 ) / e.currentTarget.duration;
      } catch (e) {/*fake out progress bar movement*/
        _this.progress = 1;
      }
    }
  });

Not sure what to do the mozAdapter to have that work, I'm hoping to see live-streams being cross-compatible. I mean if the element can handle them it doesn't make much sense if they can't handle processing streams so I'm not sure what part of the mozAdapter is stopping it.

I'd be incredibly interested to see this happen because I work at a radio station and it'd be pretty awesome to create visuals.

from dancer.js.

Related Issues (20)

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.