audio - Methods - Questions API

Questions API Methods


Important Audio Player type only.


var audioFeature = myLearnosityApp.feature('60001');;;;;;;;


Type object


  • 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%) and 1 (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%) and 1 (100%).

      • volume float

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.