Confirms the recording settings based on the provided parameters and updates the recording state.
The options for confirming the recording.
A promise that resolves when the recording settings have been confirmed.
This function performs several checks to ensure that the recording settings are valid based on the provided parameters. If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
The function checks for the following conditions:
If all checks pass, the function constructs the mainSpecs
, dispSpecs
, and textSpecs
objects based on the state variables,
updates the user recording parameters, and confirms the recording.
Confirms the recording settings based on the provided parameters and updates the recording state.
Param: options
The options for confirming the recording.
Param: options.parameters
The parameters for the recording, including:
Returns
A promise that resolves when the recording settings have been confirmed.
Remarks
This function performs several checks to ensure that the recording settings are valid based on the provided parameters. If any of the checks fail, an alert is shown and the function returns early without updating the recording state.
The function checks for the following conditions:
If all checks pass, the function constructs the
mainSpecs
,dispSpecs
, andtextSpecs
objects based on the state variables, updates the user recording parameters, and confirms the recording.Example