Ulf Kroehne
Paris, 2022/11/07 - 2022/11/08
myaudio.mp3
.AudioExampleItem.zip
and import the downloaded *.mp3
-file in the Resource BrowserAudio
to page page1
and configure the following properties:
Audio1
X: 40
, Y: 225
, Height: 30
, Width: 940
Audio
component to the Internal Media (i.e., file myaudio.mp3
)Audio
component).setMediaPlayer(Audio1,mp_start)
starts the audio playback. What is necessary, that this Operator is executed?page1
and assign the event EV_Play
.Audio1
and change the following properties:
Hide Controls: true
Use the setMediaPlayerVolume()
-operator to set the volume of the Audio-component to the max value (=10).
Disable the “Play”-button, as soon as the audio file is played.
Text: Play
to BtPlay
.R internal {EV_Play|setMediaPlayer(Audio1,mp_start)}
with a change from state R to state P.Detect Audio-End to enable the “Play”-button when the playback stops.
EV_PlayEnd
:page1
in the Page Editor and right-click the Audio
-component. Select Link Media Events and assign the event EV_PlayEnd
to the slot End Event.V_AudioCounter
with default value 0 (type: INTEGER
)EV_AnswerSelected
EV_AnswerSelected
to all RadioButtons
using Link Raised Event in the Page EditorCLOSE
command as well as the EV_Play
-event to the button.openDialog(dialog,400,300)
-operatorHelpful to remember
Audio
-components is defined using the Finite-State Machine Operator setMediaPlayer()