This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Public Method Questions API

audio

Type: object

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);

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).

  • stop function

    Stop playing the asset.

  • volume object
Was this article helpful?