getRecordingJobState method

Future<RecordingJobStateInformation> getRecordingJobState(
  1. String jobToken
)

GetRecordingJobState returns the state of a recording job. It includes an aggregated state, and state for each track of the recording job.

ACCESS CLASS: READ_MEDIA

Implementation

Future<RecordingJobStateInformation> getRecordingJobState(
    String jobToken) async {
  loggy.debug('getRecordingJobState');

  final responseEnvelope = await transport.securedRequest(
    uri,
    soap.Body(request: RecordingsRequest.getRecordingJobState(jobToken)),
  );

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return GetRecordingJobStateResponse.fromJson(
          responseEnvelope.body.response!)
      .state;
}