ILocalPlayer.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. 
  2. namespace MediaBrowser.Model.Dlna
  3. {
  4. public interface ILocalPlayer
  5. {
  6. /// <summary>
  7. /// Determines whether this instance [can access file] the specified path.
  8. /// </summary>
  9. /// <param name="path">The path.</param>
  10. /// <returns><c>true</c> if this instance [can access file] the specified path; otherwise, <c>false</c>.</returns>
  11. bool CanAccessFile(string path);
  12. /// <summary>
  13. /// Determines whether this instance [can access directory] the specified path.
  14. /// </summary>
  15. /// <param name="path">The path.</param>
  16. /// <returns><c>true</c> if this instance [can access directory] the specified path; otherwise, <c>false</c>.</returns>
  17. bool CanAccessDirectory(string path);
  18. /// <summary>
  19. /// Determines whether this instance [can access URL] the specified URL.
  20. /// </summary>
  21. /// <param name="url">The URL.</param>
  22. /// <param name="requiresCustomRequestHeaders">if set to <c>true</c> [requires custom request headers].</param>
  23. /// <returns><c>true</c> if this instance [can access URL] the specified URL; otherwise, <c>false</c>.</returns>
  24. bool CanAccessUrl(string url, bool requiresCustomRequestHeaders);
  25. }
  26. public interface ITranscoderSupport
  27. {
  28. bool CanEncodeToAudioCodec(string codec);
  29. }
  30. public class FullTranscoderSupport : ITranscoderSupport
  31. {
  32. public bool CanEncodeToAudioCodec(string codec)
  33. {
  34. return true;
  35. }
  36. }
  37. }