Class OnvifMediaService
- Namespace
- WINKOnvif.Core.Media
- Assembly
- WINKOnvif.Core.dll
public class OnvifMediaService : IMediaService
- Inheritance
-
OnvifMediaService
- Implements
-
- Inherited Members
-
Constructors
public OnvifMediaService(HttpClient httpClient, OnvifCredentials credentials, string mediaEndpoint, ILogger<OnvifMediaService>? logger = null, IAuthenticator? authenticator = null)
Parameters
httpClient
HttpClient
credentials
OnvifCredentials
mediaEndpoint
string
logger
ILogger<OnvifMediaService>
authenticator
IAuthenticator
Methods
public Task<string> CreateMetadataConfigurationAsync(MetadataConfiguration metadataConfiguration)
Parameters
metadataConfiguration
MetadataConfiguration
Returns
- Task<string>
public Task<string> CreateOsdAsync(OsdConfiguration osdConfiguration)
Parameters
osdConfiguration
OsdConfiguration
Returns
- Task<string>
public Task DeleteMetadataConfigurationAsync(string metadataToken)
Parameters
metadataToken
string
Returns
- Task
public Task DeleteOsdAsync(string osdToken)
Parameters
osdToken
string
Returns
- Task
public Task<MediaProfile> GetMediaProfileAsync(string profileToken)
Parameters
profileToken
string
Returns
- Task<MediaProfile>
public Task<List<MediaProfile>> GetMediaProfilesAsync()
Returns
- Task<List<MediaProfile>>
public Task<MetadataConfiguration> GetMetadataConfigurationAsync(string metadataToken)
Parameters
metadataToken
string
Returns
- Task<MetadataConfiguration>
public Task<MetadataConfigurationOptions> GetMetadataConfigurationOptionsAsync(string configurationToken)
Parameters
configurationToken
string
Returns
- Task<MetadataConfigurationOptions>
public Task<List<MetadataConfiguration>> GetMetadataConfigurationsAsync()
Returns
- Task<List<MetadataConfiguration>>
public Task<MulticastConfiguration> GetMulticastConfigurationAsync(string profileToken)
Parameters
profileToken
string
Returns
- Task<MulticastConfiguration>
public Task<OsdConfiguration> GetOsdAsync(string osdToken)
Parameters
osdToken
string
Returns
- Task<OsdConfiguration>
public Task<OsdConfigurationOptions> GetOsdConfigurationOptionsAsync(string configurationToken)
Parameters
configurationToken
string
Returns
- Task<OsdConfigurationOptions>
public Task<List<OsdConfiguration>> GetOsdsAsync()
Returns
- Task<List<OsdConfiguration>>
public Task<string> GetSnapshotUri(string profileToken)
Parameters
profileToken
string
Returns
- Task<string>
public Task<string> GetStreamUri(string profileToken)
Parameters
profileToken
string
Returns
- Task<string>
public Task<VideoEncoderConfiguration> GetVideoEncoderConfigurationAsync(string configurationToken)
Parameters
configurationToken
string
Returns
- Task<VideoEncoderConfiguration>
public Task SetMulticastConfigurationAsync(string profileToken, MulticastConfiguration configuration)
Parameters
profileToken
string
configuration
MulticastConfiguration
Returns
- Task
public Task SetVideoEncoderConfigurationAsync(string profileToken, VideoEncoderConfiguration configuration)
Parameters
profileToken
string
configuration
VideoEncoderConfiguration
Returns
- Task
public Task UpdateMetadataConfigurationAsync(MetadataConfiguration metadataConfiguration)
Parameters
metadataConfiguration
MetadataConfiguration
Returns
- Task
public Task UpdateOsdAsync(OsdConfiguration osdConfiguration)
Parameters
osdConfiguration
OsdConfiguration
Returns
- Task