Module: standardPlayer/StageContext

This context provides functionality and data according to the stage scope.

Members

<inner> audio :Object

This object provides methods for audio handling.

Type:
  • Object
See:

<inner> event :Object

This object provides methods to handle events in the stage scope.

Type:
  • Object
See:

<inner> navigation :Object

This object provides methods for the eLearning navigation.

Type:
  • Object
See:

<inner> variable :Object

This object provides methods for storing and retrieving data.
The data will be stored until the student terminates the WBT.

Type:
  • Object
See:

Methods

<inner> getOffset() → {object}

Gets the offset of the stage relative to browser window.

Returns:

position left, top

Type
object

<inner> getSharedPath() → {string}

Gets the path to the shared files.

Returns:

file path

Type
string

<inner> getZoom() → {number}

Gets the zoom factor of the stage.

Returns:

The factor of the stage zoom.

Type
number

<inner> isInAssessmentMode() → {boolean}

Checks the assessment mode condition.

If this method returns "true", the wbt is started as an assessment.

Returns:

"true" if the wbt is stated as an assessment, otherwise "false".

Type
boolean

<inner> isInAuthoringMode() → {boolean}

Checks the authoring mode condition.

If this method returns "true", your component is running in an authoring environment
and is enabled for editing by an author.

Returns:

"true" if the authoring mode is active, otherwise "false".

Type
boolean

<inner> isInLearningMode() → {boolean}

Checks the learning mode condition.

If this method returns "true", the wbt is started for learning.

Returns:

"true" if the wbt is started for learning.

Type
boolean

<inner> isInPreviewMode() → {boolean}

Checks the preview mode condition.

If this method returns "true", your component is running in preview mode on an authoring environment.

Returns:

"true" if the authoring mode is active, otherwise "false".

Type
boolean