"Embed an audio player" recipe is incomplete?

The Embed an audio player recipe is confusing me. I tried pasting the Audio audio = new Audio("audio/sound.mp3"); line into my app but Audio is not recognized. What is the import statement? Maybe there is some trick to using the cookbook that I don’t know about?

The linked class is just missing from the recipe cookbook/src/main/java/com/vaadin/recipes/recipe/embedaudio/Audio.java at 2a5ac7cd3088d651ba55250573e9e9b76faf640d · vaadin/cookbook · GitHub

1 Like

I fixed the missing metadata so that Audio.java will be shown as a tab in the UI. The change should be live soon.

1 Like