IEncodingManager.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. using System.Threading;
  2. using System.Threading.Tasks;
  3. namespace MediaBrowser.Controller.MediaEncoding
  4. {
  5. public interface IEncodingManager
  6. {
  7. /// <summary>
  8. /// Gets the subtitle cache path.
  9. /// </summary>
  10. /// <param name="originalSubtitlePath">The original subtitle path.</param>
  11. /// <param name="outputSubtitleExtension">The output subtitle extension.</param>
  12. /// <returns>System.String.</returns>
  13. string GetSubtitleCachePath(string originalSubtitlePath, string outputSubtitleExtension);
  14. /// <summary>
  15. /// Gets the subtitle cache path.
  16. /// </summary>
  17. /// <param name="mediaPath">The media path.</param>
  18. /// <param name="subtitleStreamIndex">Index of the subtitle stream.</param>
  19. /// <param name="outputSubtitleExtension">The output subtitle extension.</param>
  20. /// <returns>System.String.</returns>
  21. string GetSubtitleCachePath(string mediaPath, int subtitleStreamIndex, string outputSubtitleExtension);
  22. /// <summary>
  23. /// Refreshes the chapter images.
  24. /// </summary>
  25. /// <param name="options">The options.</param>
  26. /// <param name="cancellationToken">The cancellation token.</param>
  27. /// <returns>Task{System.Boolean}.</returns>
  28. Task<bool> RefreshChapterImages(ChapterImageRefreshOptions options, CancellationToken cancellationToken);
  29. }
  30. }