jellyfin/Emby.Server.Implementations/LiveTv/EmbyTV/IRecorder.cs

28 lines
1.2 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
using System;
2016-02-12 02:01:38 -05:00
using System.Threading;
using System.Threading.Tasks;
2017-05-15 15:45:39 -04:00
using MediaBrowser.Controller.Library;
2016-02-12 02:01:38 -05:00
using MediaBrowser.Model.Dto;
2016-11-03 19:35:19 -04:00
namespace Emby.Server.Implementations.LiveTv.EmbyTV
2016-02-12 02:01:38 -05:00
{
public interface IRecorder
{
2016-02-29 23:24:42 -05:00
/// <summary>
/// Records the specified media source.
/// </summary>
2021-10-02 14:15:33 -04:00
/// <param name="directStreamProvider">The direct stream provider, or <c>null</c>.</param>
/// <param name="mediaSource">The media source.</param>
/// <param name="targetFile">The target file.</param>
/// <param name="duration">The duration to record.</param>
/// <param name="onStarted">An action to perform when recording starts.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>A <see cref="Task"/> that represents the recording operation.</returns>
2021-08-28 11:32:09 -04:00
Task Record(IDirectStreamProvider? directStreamProvider, MediaSourceInfo mediaSource, string targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken);
2016-05-10 01:15:06 -04:00
string GetOutputPath(MediaSourceInfo mediaSource, string targetFile);
2016-02-12 02:01:38 -05:00
}
}