-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Add AudioPlayer class that handles both WebAudio and HTML5 audio #3179
Conversation
🦋 Changeset detectedLatest commit: bbaddbe The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful, especially the use of Jest's auto mocking! Have you thought about using howler.js internally? We could defer some edge case handling responsibility that way...
…e plugins using AudioPlayer and added tests; changed test-utils' clickTarget to respect disabled forms
Completing the implementation of the AudioPlayer class in JsPsych
…for enable_button_after for audio_button_response.
Updates to the AudioPlayer class and audio-button-response plugin
This implements #341 by creating an
AudioPlayer
class to handle the basic audio functions (load, play, stop, event handling) required by most uses of audio in jsPsych.This will allow us to clean up the code in the audio plugins to avoid checking whether the audio engine is HTML5 or web audio.
Remaining tasks include:
AudioPlayer