hypermodules / abstract-audio-player

MIT License
0 stars 0 forks source link

AudioPlayer #2

Open kareniel opened 6 years ago

kareniel commented 6 years ago

"A test suite and interface you can use to implement a hyperaudio compatible audio player."

"This would also serve as a place to design a playback API that can be swapped out with native ones in the future."

"A random-audio-player instance is a common interface for an audio player abstraction, that provides a core api."

I extracted what I understand to be the public api of the AudioPlayer class I found in Hyperamp. This is basically a wrapper class around the node from a given audio element, right?

šŸ”€ abstract-audio-player

usage

audioPlayer = AudioPlayer(audioNode, globalState)

properties

methods

+ nanobus methods:

events


See also:

bcomnes commented 6 years ago

Thanks for putting this together. I started going down the road of abstracting this, but didn't finish but yeah, I think you have the idea.

I paused because I wanted to figure out how a possible integration with mpd would look before sinking to much work into it.