Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hi,

I'm working on a project and I found this awesome library!
Do you think it's possible to connect the visuals with a stream of audio that I get from Spotify?
and If so how do I do that, I tried following the "fromStream" function example from the docs, but I keep getting the next error:
TypeError: Failed to execute 'createMediaStreamSource' on 'AudioContext': parameter 1 is not of type 'MediaStream'.
(working with react btw)

You must be logged in to vote

Hey, late response, but you might be able to use the srcObject property on the audio html element. MediaStream is the type returned when you request getUserMedia from the global navigator object. Its used for things like your webcam and microphone, so if its a external stream, it might not work. Need to find a way to pipe the audio into an html audio element.

Replies: 1 comment

Comment options

Hey, late response, but you might be able to use the srcObject property on the audio html element. MediaStream is the type returned when you request getUserMedia from the global navigator object. Its used for things like your webcam and microphone, so if its a external stream, it might not work. Need to find a way to pipe the audio into an html audio element.

You must be logged in to vote
0 replies
Answer selected by foobar404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.