Questions API Methods
audio
Important Audio Player type only.
Examples
var audioFeature = myLearnosityApp.feature('60001');
audioFeature.audio.play();
audioFeature.audio.pause();
audioFeature.audio.resume();
audioFeature.audio.seek(50);
audioFeature.audio.stop();
audioFeature.audio.volume.get();
audioFeature.audio.volume.set(0.5);
Values
Type object
Properties
-
pause function
Pause playback.
-
play function
Play the asset.
-
resume function
Resume paused playback.
-
seek function
Go to a specific point in the asset. Takes the position in percentage of the audio duration (e.g:
80
).-
percentage integer
-
-
stop function
Stop playing the asset.
-
volume object
-
get function
Returns an integer stating volume of the audio file. The returned values are between
0
(0%) and1
(100%). -
set function
Set the volume of an audio file that is or will be played by an audio feature. The valid values are between
0
(0%) and1
(100%).-
volume float
-
-