namespace MediaBrowser.Model.Dlna { public interface ILocalPlayer { /// /// Determines whether this instance [can access file] the specified path. /// /// The path. /// true if this instance [can access file] the specified path; otherwise, false. bool CanAccessFile(string path); /// /// Determines whether this instance [can access directory] the specified path. /// /// The path. /// true if this instance [can access directory] the specified path; otherwise, false. bool CanAccessDirectory(string path); /// /// Determines whether this instance [can access URL] the specified URL. /// /// The URL. /// if set to true [requires custom request headers]. /// true if this instance [can access URL] the specified URL; otherwise, false. bool CanAccessUrl(string url, bool requiresCustomRequestHeaders); } public interface ITranscoderSupport { bool CanEncodeToAudioCodec(string codec); } public class FullTranscoderSupport : ITranscoderSupport { public bool CanEncodeToAudioCodec(string codec) { return true; } } }