Tonejs / Tone.js

A Web Audio framework for making interactive music in the browser.
https://tonejs.github.io
MIT License
13.41k stars 976 forks source link

Examples on homepage not working on Safari 14.1 #911

Open unindented opened 3 years ago

unindented commented 3 years ago

Describe the bug None of the examples on the homepage work on Safari 14.1. Pressing run does nothing.

To Reproduce Go to https://tonejs.github.io/ on Safari 14.1, and press run on any of the examples.

Expected behavior Plays a sound.

What I've tried Autoplay restrictions on Safari probably breaking things. It gives users a bad first impression though.

Additional context N/A

tambien commented 3 years ago

This seems to be because that little examples UI uses BroadcastChannel to communicate between the worker thread and the main page.

image

I should update that little widget to use a polyfill to get rid of this error.