-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Please do a bit of testing on the 2.5.0 release #48
Comments
All of the tests seem to work fine from a fresh install from NPM. However, I do seem to get an invalid hash from the extended drawimage function that I'll need to look into. As for testing on Mac, I don't have one to test on either. |
Strange, the hash tests all worked for me. On the mac, i will send you my log in info for https://www.browserstack.com/ Please test a mac/safari combo, then we can close this. |
not surprising, that's not a bug.
Are all the tests passing with this version? |
Every test except the ones in tests-audio that play directly from the file URL. |
you should figure out why, i assme? |
It seems to be an auto-playback issue. Most browsers have a whitelist for which websites can automatically play audio on a web page. This is one of the reasons you have to hit a button to start the audio tests as the button click, at least for Firefox and Chrome, acts as a user interaction to unlock audio playback. However, that seems to only partially work for Safari. My best guess is that there's an extra check for HTMLMediaElement's since they're usually supposed to be visible (and clickable), so the user has to specifically interact with the element itself to get it to play. Meanwhile, the method that loads the entire file uses an AudioContext (which isn't usually an HTMLElement) so it bypasses it somehow. I'm not quite sure if that's the right answer, but it's the best I could find. I'm not quite sure how to fix that other than just loading the entire file similar to how the other functions use. For now, I'm going to fix it to at least go through the test rather than get stuck until a better solution is decided upon. Also, I noticed that audio.play() can fail asynchronously. It's currently available to both normal and asynchronous modules so I can't just return the error. So, should I setup a way to handle errors, such as a callback? |
on the safari auto playback issue, it sounds like we should create a seperate issue for that and we will try and work through it. For the audio.play, i'd need to understand the issue a little better to have an opinion. Maybe we could talk tomorrow? Are you free? I am free at 2pm or late CT, or 10am or before CT. I'm also around this weekend. |
I'm pretty busy Friday, however I'll be free over the weekend. |
sounds good |
Hi Johnathon,
I released 2.5.0 to npm and github. I did a fair amount of testing, and found issues mostly related to the npm package, which i fixed. But i did all my npm testing using the npm pack command.
Please do a clean download from npm and verify that (a) unbundled examples run w/o building (using server.py), and (b) examples build and run (bundled and unbundled)
Also please test online examples on mac, if you have one (I don't, do you?). https://twiddlingbits.dev/examples/dist/index.html. Test bundled and unbundled.
Thanks
The text was updated successfully, but these errors were encountered: