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
Uncaught TypeError: this.current_stream.loop is not a function #24
Comments
Had this happen to me, got it working by editing the library's JS file. In the TLDR:Simply changing the line that goes: to instead be: I don't know if there's more to be fixed but it seems that all the frame parameters are called with 1 anyway, so the solution makes sense. Hope this helped! |
My issue is regarding the
|
Oh! I had this occur a few times, but it seemed to stop happening out of the blue. Which function are you calling on the wave object? fromStream? this.current_stream should be assigned to the renderFrame function at the end of the fromStream function. Also, can I see your code? Here is what's working for me: const wave = new Wave();
function onMicAccess(stream)
{
wave.fromStream(stream, canvas.id, designs[0]);
wave.playStream();
} I'm waiting for the user to interact with the page before requesting audio access to prevent Chrome from blocking it due to their auto-play policy, then calling |
The way I am implementing this is to have a visual when the user interacts with the 'play' button on a radio website, however I still get the same error relating to Snippets in order of process:
|
Followed the guide to use the CDN version and how to start the stream, etc but I am getting the following error.
wave.js:266 Uncaught TypeError: this.current_stream.loop is not a function at Wave.playStream (wave.js:266) at playSound (player.js:46) at change (player.js:72) at HTMLElement.onclick ((index):214)
The text was updated successfully, but these errors were encountered: