MorsePlayer/CWPlayer sample usage

# MorsePlayer custom element

MorsePlayer is a HTML custom element, it can be used anywhere in web pages, popups...

Basic usage

(css isn't mandatory)

Standard attributes

Show only buttons

Display clear zone

Display download button

Pure JS


# CWPlayer class

CWPlayer is the CW engine of MorsePlayer and is useable without frontend. However the initialisation (first call to play()) must be done by a user gesture on the page (more infos here)

Basic usage

Events