View Source ExOnvif.Recording (ExOnvif v0.7.1)
Interface for making requests to the Onvif recording service
Summary
Functions
CreateRecording shall create a new recording.
CreateRecordingJob shall create a new recording job.
GetRecordingJobs shall return a list of all the recording jobs in the device.
GetRecordings shall return a description of all the recordings in the device.
Returns the capabilities of the recording service.
Functions
@spec create_recording( ExOnvif.Device.t(), ExOnvif.Recording.RecordingConfiguration.t() ) :: {:ok, String.t()} | {:error, any()}
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.
@spec create_recording_job(ExOnvif.Device.t(), ExOnvif.Recording.JobConfiguration.t()) :: {:ok, ExOnvif.Recording.RecordingJob.t()} | {:error, any()}
CreateRecordingJob shall create a new recording job.
The JobConfiguration returned from CreateRecordingJob shall be identical to the JobConfiguration passed into CreateRecordingJob, except for the ReceiverToken and the AutoCreateReceiver. In the returned structure, the ReceiverToken shall be present and valid and the AutoCreateReceiver field shall be omitted.
@spec get_recording_jobs(ExOnvif.Device.t()) :: {:ok, [ExOnvif.Recording.RecordingJob.t()]} | {:error, any()}
GetRecordingJobs shall return a list of all the recording jobs in the device.
@spec get_recordings(ExOnvif.Device.t()) :: {:ok, [ExOnvif.Recording.Recording.t()]} | {:error, any()}
GetRecordings shall return a description of all the recordings in the device.
This description shall include a list of all the tracks for each recording.
@spec get_service_capabilities(ExOnvif.Device.t()) :: {:ok, ExOnvif.Recording.ServiceCapabilities.t()} | {:error, any()}
Returns the capabilities of the recording service.