Namespace: $scope

Angular.MediaPlaybackController# $scope

The MediaPlaybackController's $scope object. All properties on $scope are available to the view.

Source:

Members

buttonAction :function

The method to which the button in the view is bound. Initially, the button is bound to $scope#startMediaPlayback.

Type:
  • function
Source:

buttonDisabled :boolean

Indicates whether or not the 'continue' button is disabled.

Type:
  • boolean
Source:

currentButtonLabel :string

The initial label for the button in the view.

Type:
  • string
Source:

mediaHasPlayed :boolean

Indicates whether or not the media excerpt has been played.

Type:
  • boolean
Source:

Methods

startMediaPlayback() → {undefined}

Sends a message to the Max helper application to initiate media playback. The message includes the current session number and the media label (according to the study specification document), both retrieved from the TrialData service. This object sent with this message is formatted like the following:

{
    oscType: 'message,
    address: '/eim/control/mediaID',
    args: [
        {
            type: 'string',
            value: <MEDIALABEL>
        },
        {
            type: 'string',
            value: <SESSIONNUMBER>
        }
    ]
}

When this method is called, $scope#buttonAction is bound to ExperimentManager#advanceSlide.

Source:
Returns:
Type
undefined