Table of Contents

Class OnvifMediaService

Namespace
WINKOnvif.Core.Media
Assembly
WINKOnvif.Core.dll
public class OnvifMediaService : IMediaService
Inheritance
OnvifMediaService
Implements
Inherited Members

Constructors

OnvifMediaService(HttpClient, OnvifCredentials, string, ILogger<OnvifMediaService>?, IAuthenticator?)

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

CreateMetadataConfigurationAsync(MetadataConfiguration)

public Task<string> CreateMetadataConfigurationAsync(MetadataConfiguration metadataConfiguration)

Parameters

metadataConfiguration MetadataConfiguration

Returns

Task<string>

CreateOsdAsync(OsdConfiguration)

public Task<string> CreateOsdAsync(OsdConfiguration osdConfiguration)

Parameters

osdConfiguration OsdConfiguration

Returns

Task<string>

DeleteMetadataConfigurationAsync(string)

public Task DeleteMetadataConfigurationAsync(string metadataToken)

Parameters

metadataToken string

Returns

Task

DeleteOsdAsync(string)

public Task DeleteOsdAsync(string osdToken)

Parameters

osdToken string

Returns

Task

GetMediaProfileAsync(string)

public Task<MediaProfile> GetMediaProfileAsync(string profileToken)

Parameters

profileToken string

Returns

Task<MediaProfile>

GetMediaProfilesAsync()

public Task<List<MediaProfile>> GetMediaProfilesAsync()

Returns

Task<List<MediaProfile>>

GetMetadataConfigurationAsync(string)

public Task<MetadataConfiguration> GetMetadataConfigurationAsync(string metadataToken)

Parameters

metadataToken string

Returns

Task<MetadataConfiguration>

GetMetadataConfigurationOptionsAsync(string)

public Task<MetadataConfigurationOptions> GetMetadataConfigurationOptionsAsync(string configurationToken)

Parameters

configurationToken string

Returns

Task<MetadataConfigurationOptions>

GetMetadataConfigurationsAsync()

public Task<List<MetadataConfiguration>> GetMetadataConfigurationsAsync()

Returns

Task<List<MetadataConfiguration>>

GetMulticastConfigurationAsync(string)

public Task<MulticastConfiguration> GetMulticastConfigurationAsync(string profileToken)

Parameters

profileToken string

Returns

Task<MulticastConfiguration>

GetOsdAsync(string)

public Task<OsdConfiguration> GetOsdAsync(string osdToken)

Parameters

osdToken string

Returns

Task<OsdConfiguration>

GetOsdConfigurationOptionsAsync(string)

public Task<OsdConfigurationOptions> GetOsdConfigurationOptionsAsync(string configurationToken)

Parameters

configurationToken string

Returns

Task<OsdConfigurationOptions>

GetOsdsAsync()

public Task<List<OsdConfiguration>> GetOsdsAsync()

Returns

Task<List<OsdConfiguration>>

GetSnapshotUri(string)

public Task<string> GetSnapshotUri(string profileToken)

Parameters

profileToken string

Returns

Task<string>

GetStreamUri(string)

public Task<string> GetStreamUri(string profileToken)

Parameters

profileToken string

Returns

Task<string>

GetVideoEncoderConfigurationAsync(string)

public Task<VideoEncoderConfiguration> GetVideoEncoderConfigurationAsync(string configurationToken)

Parameters

configurationToken string

Returns

Task<VideoEncoderConfiguration>

SetMulticastConfigurationAsync(string, MulticastConfiguration)

public Task SetMulticastConfigurationAsync(string profileToken, MulticastConfiguration configuration)

Parameters

profileToken string
configuration MulticastConfiguration

Returns

Task

SetVideoEncoderConfigurationAsync(string, VideoEncoderConfiguration)

public Task SetVideoEncoderConfigurationAsync(string profileToken, VideoEncoderConfiguration configuration)

Parameters

profileToken string
configuration VideoEncoderConfiguration

Returns

Task

UpdateMetadataConfigurationAsync(MetadataConfiguration)

public Task UpdateMetadataConfigurationAsync(MetadataConfiguration metadataConfiguration)

Parameters

metadataConfiguration MetadataConfiguration

Returns

Task

UpdateOsdAsync(OsdConfiguration)

public Task UpdateOsdAsync(OsdConfiguration osdConfiguration)

Parameters

osdConfiguration OsdConfiguration

Returns

Task