aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/MediaEncoding/IEncodingManager.cs
blob: d1e40e3f06762ba89ba1e08b08b3919af17038f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Threading;
using System.Threading.Tasks;

namespace MediaBrowser.Controller.MediaEncoding
{
    public interface IEncodingManager
    {
        /// <summary>
        /// Gets the subtitle cache path.
        /// </summary>
        /// <param name="originalSubtitlePath">The original subtitle path.</param>
        /// <param name="outputSubtitleExtension">The output subtitle extension.</param>
        /// <returns>System.String.</returns>
        string GetSubtitleCachePath(string originalSubtitlePath, string outputSubtitleExtension);

        /// <summary>
        /// Gets the subtitle cache path.
        /// </summary>
        /// <param name="mediaPath">The media path.</param>
        /// <param name="subtitleStreamIndex">Index of the subtitle stream.</param>
        /// <param name="outputSubtitleExtension">The output subtitle extension.</param>
        /// <returns>System.String.</returns>
        string GetSubtitleCachePath(string mediaPath, int subtitleStreamIndex, string outputSubtitleExtension);

        /// <summary>
        /// Refreshes the chapter images.
        /// </summary>
        /// <param name="options">The options.</param>
        /// <param name="cancellationToken">The cancellation token.</param>
        /// <returns>Task{System.Boolean}.</returns>
        Task<bool> RefreshChapterImages(ChapterImageRefreshOptions options, CancellationToken cancellationToken);
    }
}