diff options
| author | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-07-01 16:16:41 -0700 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-07-01 16:16:41 -0700 |
| commit | 0e1ae2def24dd623d7edb765f4f9b92567d862e3 (patch) | |
| tree | 4593e93c30ae51ecc5243009acae2402ab033720 /MediaBrowser.Controller | |
| parent | 6d9e43cfe03d94aec62a0b35743003fa4caa32b1 (diff) | |
Add CreateTiles to ITrickplayManager
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Trickplay/ITrickplayManager.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Trickplay/ITrickplayManager.cs b/MediaBrowser.Controller/Trickplay/ITrickplayManager.cs index 0a1e780b2..7bea54fba 100644 --- a/MediaBrowser.Controller/Trickplay/ITrickplayManager.cs +++ b/MediaBrowser.Controller/Trickplay/ITrickplayManager.cs @@ -4,6 +4,7 @@ using System.Threading; using System.Threading.Tasks; using Jellyfin.Data.Entities; using MediaBrowser.Controller.Entities; +using MediaBrowser.Model.Configuration; namespace MediaBrowser.Controller.Trickplay; @@ -22,6 +23,19 @@ public interface ITrickplayManager Task RefreshTrickplayDataAsync(Video video, bool replace, CancellationToken cancellationToken); /// <summary> + /// Creates trickplay tiles out of individual thumbnails. + /// </summary> + /// <param name="images">Ordered file paths of the thumbnails to be used.</param> + /// <param name="width">The width of a single thumbnail.</param> + /// <param name="options">The trickplay options.</param> + /// <param name="outputDir">The output directory.</param> + /// <returns>The associated trickplay information.</returns> + /// <remarks> + /// The output directory will be DELETED and replaced if it already exists. + /// </remarks> + TrickplayInfo CreateTiles(List<string> images, int width, TrickplayOptions options, string outputDir); + + /// <summary> /// Get available trickplay resolutions and corresponding info. /// </summary> /// <param name="itemId">The item.</param> |
