The MediaPlaybackController's $scope object. All properties on
$scope are available to the view.
Members
buttonAction :function
The method to which the button in the view is bound. Initially, the button is bound to $scope#startMediaPlayback.
Type:
- function
buttonDisabled :boolean
Indicates whether or not the 'continue' button is disabled.
Type:
- boolean
currentButtonLabel :string
The initial label for the button in the view.
Type:
- string
mediaHasPlayed :boolean
Indicates whether or not the media excerpt has been played.
Type:
- boolean
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.
Returns:
- Type
- undefined