I was experimenting with some JavaScript code. I tried generate sound by oscillator on localhost via snippets. But run that snippet on another website by accident. In that snippet, there was a mistake and it play sound in infinity cycle. Website freeze and after refresh, there is a warning in console:
Error with Feature-Policy header: Unrecognized feature: 'speaker'.
and, on that site, I am not able to play any sound anymore. I tried another browser but Edge or Firefox do not ever supporting that feature. I tried another PC and also VPN and still same. Is there anything what I can do with it? It is forever? Btw I launched it on Stackoverflow.
Code of snippet what I tried:
function playAudio(){
context = new AudioContext();
var o = context.createOscillator();
o.type = 'sine';
o.frequency.value = 350;
o.connect(context.destination);
// Start the sound
o.start(0);
// Play the sound for a second before stopping it
setTimeout(async function() {
o.stop(0);
//await sleep(100);
//playAudio();
}, 1000);
}
while(true){
playAudio();
}