Interface ICodecProvider
Objects implementing this interface will be detected at runtime. Executing GetCodecList(IHostInfo) will allow a codec provider to a list of codecs that it has detected.
Namespace: MediaBrowser.Controller.Codecs
Assembly: MediaBrowser.Controller.dll
Syntax
public interface ICodecProvider
Remarks
The purpose of this provider model is to allow platform specific detection implementations.
Methods
GetCodecList(IHostInfo)
A codec info provider implements this method to return a list of detected codecs.
Declaration
Task<List<ICodecBase>> GetCodecList(IHostInfo hostInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IHostInfo | hostInfo |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.Collections.Generic.List<ICodecBase>> | A list of codecs. |
IsApplicable(IHostInfo)
Indicates whether a codec info provider is applicable to the current platform and configuration
Declaration
bool IsApplicable(IHostInfo hostInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IHostInfo | hostInfo |
Returns
| Type | Description |
|---|---|
| System.Boolean |
|