Interface IMediaInformationGenerator2
The IMediaInformationGenerator2 interface
Inherited Members
Namespace: ImageVault.Core.Common.Analysers
Assembly: ImageVault.Core.dll
Syntax
public interface IMediaInformationGenerator2 : ICorePlugin
Methods
GenerateConvertedMediaInformation(ConvertedMediaInformationRequest)
Populates the Media property for the supplied format using the converter
Declaration
Media GenerateConvertedMediaInformation(ConvertedMediaInformationRequest request)
Parameters
Type | Name | Description |
---|---|---|
ConvertedMediaInformationRequest | request | The ConvertedMediaInformationRequest used for passing parameters to the operation |
Returns
Type | Description |
---|---|
Media | The resulting Media or null if the generator is not able to generate any information. |
Remarks
Don't set Name or ContentTypeof the returned Media. It will automatically be assigned with the values returned from the CalculateMediaName(DbMediaContentReference, MediaFormatBase) and CalculateContentType(DbMediaContentReference, MediaFormatBase). If setting these properties, the values returned from the methods above can be overwritten with custom values but this is rarely needed.
GenerateOriginalMediaInformation(OriginalMediaInformationRequest)
Generates media information (a Media (or subclass) instance for an original content, and populates the DbMediaContentReference with it.
Declaration
Media GenerateOriginalMediaInformation(OriginalMediaInformationRequest request)
Parameters
Type | Name | Description |
---|---|---|
OriginalMediaInformationRequest | request | The OriginalMediaInformationRequest used for passing parameters to the operation |
Returns
Type | Description |
---|---|
Media | The resulting Media or null if the generator is not able to generate any information. |