Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaStream from Web RTC API as a data source? #44

Open
japboy opened this issue Mar 22, 2013 · 6 comments
Open

MediaStream from Web RTC API as a data source? #44

japboy opened this issue Mar 22, 2013 · 6 comments

Comments

@japboy
Copy link

japboy commented Mar 22, 2013

Just wondering if it's possible or not...?

@jsantell
Copy link
Owner

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

@japboy
Copy link
Author

japboy commented Mar 28, 2013

Cool! Looking forward to it 👍

@hampusohlsson
Copy link

Any updates on this?

@jsantell
Copy link
Owner

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 :)

@hampusohlsson
Copy link

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

@theunknownartisthour
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants