API Docs for: 2.0.0

Class SAGE2_AudioManager

Class defined in: public/src/SAGE2_AudioManager.js:14

SAGE2 Audio Manager, renders the audio streams for a given site

changeVideoVolume( videoId, volume )
public/src/SAGE2_AudioManager.js:579

Change the volume of a video

Parameters:
  • videoId <String>

    id of the video

  • volume <Number>

    new volume value

changeVolume( event )
public/src/SAGE2_AudioManager.js:564

Handler for the volume slider

Parameters:
  • event <Event>

    event data

handleSoundJSLoad( event )
public/src/SAGE2_AudioManager.js:547

Callback for Soundjs library when all audio assets loaded

Parameters:
  • event <Event>

    event data

playVideo( videoId )
public/src/SAGE2_AudioManager.js:591

Play a video

Parameters:
  • videoId <String>

    id of the video

SAGE2_init( )
public/src/SAGE2_AudioManager.js:54

Entry point of the application

updateVideotime( videoId )
public/src/SAGE2_AudioManager.js:601

Uptime video time

Parameters:
  • videoId <String>

    id of the video