getRecordingOptions method

Future<RecordingOptions> getRecordingOptions(
  1. String recordingToken
)

GetRecordingOptions returns information for a recording identified by the recordingToken. The information includes the number of additional tracks as well as recording jobs that can be configured.

ACCESS CLASS: READ_MEDIA

Implementation

Future<RecordingOptions> getRecordingOptions(String recordingToken) async {
  loggy.debug('getRecordingOptions');

  final responseEnvelope = await transport.securedRequest(
    uri,
    soap.Body(
      request: RecordingsRequest.getRecordingOptions(
          ReferenceToken(recordingToken)),
    ),
  );

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

  return GetRecordingOptionsResponse.fromJson(responseEnvelope.body.response!)
      .options;
}