GemAudio
The audio component embeds sound content on a page.
Usage Example
/* (c) https://github.com/MontiCore/monticore */
package example_basic;
import mc.fenix.basic.GemAudio;
import common.ExamplePage;
page GemAudioExample() {
@ExamplePage(
component = @GemAudio(
width = "300px",
source = "assets/audio/audio.mp3"
),
basePath = "example_basic",
componentName = "GemAudioExample"
);
}
GUI Model
component GemAudio(
String width = "auto",
String source
)
| Name | Type | Description | Default value |
|---|---|---|---|
width |
String |
Width of the component in px, %, vh. By default takes up all available space. |
"auto" |
source |
String |
The path to the audio file. It can be a URL or a relative path. The relative path starts from the root folder (typically src/). |