fand / veda

⚡VJ / Live Coding on Atom⚡
http://veda.gl/
MIT License
508 stars 34 forks source link

Audio input doesn't work in server mode #252

Open illus0r opened 3 years ago

illus0r commented 3 years ago

Hey there! Great tool, I use it for live coding and love so much!

I would like to use it for collaboration with a musician from the other city, so I could live-code and the musician could open my shader from my localhost (let's say via ngrok.com) and to stream their video.

The problem is that the shader doesn't react to sound if it's on localhost, but works fine in atom.

The code:

/*
{
  audio: true,
  server: 8008,
}
*/
precision mediump float;
uniform vec2 resolution;
uniform sampler2D spectrum;
void main() {
  vec2 uv = gl_FragCoord.xy/resolution.xy;
  gl_FragColor+=texture2D(spectrum,uv)+.5;
}

Is it a known problem? How to overcome it?

If it's not possible in veda, which other app can be used for remote live-coding?

veda version: 2.14.3 atom: 1.44.0 Microphone is allowed

ivpravdin commented 2 years ago

@fand It does not work for me neither. I see that "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.", maybe it is somehow related to the problem?