Skip to content

Add stopOn and pauseOn event properties to sound component#5829

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:sound-stopOn
Jun 13, 2026
Merged

Add stopOn and pauseOn event properties to sound component#5829
dmarcos merged 1 commit into
aframevr:masterfrom
vincentfretin:sound-stopOn

Conversation

@vincentfretin

Copy link
Copy Markdown
Contributor

Add stopOn and pauseOn properties to the sound component to stop or pause the sound on a user-defined event, mirroring the existing on property. Listeners are now only registered when the event name is non-empty, fixing the previous behavior where an empty-string listener was registered for on.

Add `stopOn` and `pauseOn` properties to the sound component to stop or
pause the sound on a user-defined event, mirroring the existing `on`
property. Listeners are now only registered when the event name is
non-empty, fixing the previous behavior where an empty-string listener
was registered for `on`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dmarcos

dmarcos commented Jun 13, 2026

Copy link
Copy Markdown
Member

thanks

@dmarcos dmarcos merged commit 3615cdb into aframevr:master Jun 13, 2026
1 check passed
@vincentfretin vincentfretin deleted the sound-stopOn branch June 13, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants