-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
play_sound operation hijacks sound controls #111
Comments
You know, I completely agree with you - this functionality should have been opt-in. I had no idea it would cause this concern, or else I would have done so out of the gate. Let me work something up and we'll try to get an update pushed ASAP. |
Thanks for the fast respond @leastbad. And thanks for giving us a good laugh. We had some fun this morning to figure out why our accounting software suddenly was playing music 🤣 |
Our wine website also plays music, how fun :) |
I really am sorry about this, but it's exactly why we pulled it out of core: we flew too close to the sun and could not anticipate every diverse scenario that might come up. It's my hope that you can instead take the ideas I wanted to express from the source and cut your own custom operation that hits the sweet spot for your application. For example, you might need to test and see if audio is already playing? I don't know. Safari makes everything complicated. The main takeaway from the hack I used is that the first sound has to be played in direct response to the event that captured it; you cannot delegate it, Good luck! |
No worries!! I'm really happy you added it to SR, it's just kind of funny. We upgraded our version, thanks for the awesome work @leastbad ! |
In #98 a new
play_sound
operation is added. The PR describes:This method has some serious drawbacks:
We are forced to downgrade to 4.4.6, although we have no intention to use the
play_sound
operation. Maybe the audio for Mobile Safari hack should only be activated when using theplay_sound
operation?The text was updated successfully, but these errors were encountered: