using Microsoft.Extensions.Configuration;
namespace MediaBrowser.Controller.Extensions
{
///
/// Configuration extensions for MediaBrowser.Controller.
///
public static class ConfigurationExtensions
{
///
/// The key for the FFmpeg probe size option.
///
public const string FfmpegProbeSizeKey = "FFmpeg_probesize";
///
/// The key for the FFmpeg analyse duration option.
///
public const string FfmpegAnalyzeDurationKey = "FFmpeg_analyzeduration";
///
/// Retrieves the FFmpeg probe size from the .
///
/// This configuration.
/// The FFmpeg probe size option.
public static string GetProbeSize(this IConfiguration configuration)
=> configuration[FfmpegProbeSizeKey];
///
/// Retrieves the FFmpeg analyse duration from the .
///
/// This configuration.
/// The FFmpeg analyse duration option.
public static string GetAnalyzeDuration(this IConfiguration configuration)
=> configuration[FfmpegAnalyzeDurationKey];
}
}