Open alee opened 3 years ago
I don't think we need to use @vueuse/sound. We can create an audio object instead https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/Audio
Demonstrated in e9eb62cf8e403068f09cc37e87162536aed44a26
fs node module (provides functionality to access and interact with file system) can be used on the server not the client. we may have to generate sound objects on the serverside instead
We tried out howlerjs which works well.
We need to think about sound handling.
Reacting to mutations in the Vuex store will result in playing sounds when we reload so I lean towards generating special events from the server that the client reacts to. So server emits fire and forget events and the client side has a data structure to decide how those events are played and synchronized.