Welcome to the Kung Fu Garden

Explore various micro projects and platforms by x51 and friends.

@kung-fu/components v0.4.0


@kung-fu/components / createAudioPlayer

Function: createAudioPlayer()

createAudioPlayer(audioContainerID, defaultSource?): AudioPlayer

Factory function to create an AudioPlayer instance

Parameters

audioContainerID

string

ID of the container element (without the # prefix)

defaultSource?

string

Optional default audio source URL

Returns

AudioPlayer

A new AudioPlayer instance