ccrma / webchuck

ChucK on the Web
https://chuck.stanford.edu/webchuck
MIT License
42 stars 8 forks source link

Loading webchuck doens't work over http #24

Closed terryzfeng closed 10 months ago

terryzfeng commented 11 months ago

await Chuck.init([]); Chuck.js:92 Uncaught TypeError: Cannot read properties of undefined (reading 'addModule') Loading this seems to get an error when registering the AudioWorklet node webchuck.js

The error perhaps happens at this line: await audioContext.audioWorklet.addModule(whereIsChuck + "webchuck.js");

terryzfeng commented 10 months ago

Worker APIs like Audio Worklet must be run in a secure context (HTTPS or exception localhost). Therefore WebChucK will not run over HTTP.

https://developer.chrome.com/blog/audio-worklet/