An example with chapters :
The default theme's aspect changes when page width is under 640px, 480px and 320px wide. The element must be able to insert itself in any width constraints, in liquid responsive web-design fashion.
Some examples using <iframe>
s :
Most of the themes accept different kinds of presentation, via the mode=""
attribute
↓ mode="compact"
↓ mode="button"
. The component should not reduce under 640px wide.
No need to use title=""
, canonical=""
or twitter=""
attributes for the two previous examples excepted when you also use <cpu-controller>
. Other modes exists, and some feature may be hidden. See INSTALL.md
↓ Unfoldable mode, by example : mode="compact,default"
, the component will be displayed in compact
mode in stand-by, but will unfold to default
once it plays.
You can change some aspects of the interface via some handy CSS variables, even only in a region of your page.
<style class="showcode" scoped contenteditable>/* you can edit to test it right now */ #personnalization-demo { --cpu-background : yellow; --cpu-color : green; --cpu-playing-background : yellow; --cpu-playing-color : green; } </style>
Advanced users can create their own graphic theme UI, as this one, minimilized in a single big button
If you use a chapter track with name chapters (you can generate them here), you can use a CSS rule to highlight a portion of your text with the playing audio.
- Bonjour à toi, Enfant du Futur Immédiat : Des chiffres et des lettres
- Lexique : Casser un chiffrement
- Plantage : La chute de l'Empire du chiffre Allemand
- Artefact du passé : La machine Enigma
- Histoire : Les génies du Biuro Szyfrów
- Ainsi naquit : Bletchley Park, le premier campus technologique
- Le Gourou : Alan Turing
You can create playlists on a page, one or more. When a player is ending, the next one in its playlists starts.
Notes :
- The global controller (see below) is able to show the current playlist, and highlight the playing media.
- The playlist feature won't work among iframes.
Controller only on the playing / last played <audio>
(except those included via <iframe>
)
You can see it in action in the header of our mini-site.