You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In useAudioPlayer hook, the current playing HTMLAudioElement can be exposed and then used somewhere, such as AudioController and AudioSectionLoopingController.
In this case, controller components will use data from current playingHTMLAudioElement instead of from 1st element of refs: HTMLAudioElement[]
There might be some other components which can also be benefited from this refactoring
The text was updated successfully, but these errors were encountered:
MirageJian
changed the title
AudioController and AudioSectionLoopingController refactoring
[react] AudioController and AudioSectionLoopingController refactoring
Feb 16, 2022
In
useAudioPlayer
hook, the current playingHTMLAudioElement
can be exposed and then used somewhere, such asAudioController
andAudioSectionLoopingController
.In this case, controller components will use data from current playing
HTMLAudioElement
instead of from 1st element ofrefs: HTMLAudioElement[]
There might be some other components which can also be benefited from this refactoring
The text was updated successfully, but these errors were encountered: