createRecording method
- RecordingConfiguration recordingConfiguration
CreateRecording shall create a new recording. The new recording shall be created with a track for each supported TrackType see Recording Control Spec.
This method is optional. It shall be available if the Recording/DynamicRecordings capability is TRUE.
When successfully completed, CreateRecording shall have created three tracks with the following configurations:
- TrackToken TrackType
- VIDEO001 Video
- AUDIO001 Audio
- META001 Metadata All TrackConfigurations shall have the MaximumRetentionTime set to 0 (unlimited), and the Description set to the empty string.
Implementation
Future<String> createRecording(
RecordingConfiguration recordingConfiguration) async {
loggy.debug('createRecording');
final envelope = await transport.sendRequest(
uri,
transport.securedEnvelope(
soap.RecordingsRequest.createRecording(recordingConfiguration)));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return CreateRecordingResponse.fromJson(envelope.body.response!).token;
}