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

22 lines
801 B
C#
Raw Normal View History

2016-02-12 07:01:38 +00:00
using System;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Model.Dto;
namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
{
public interface IRecorder
{
2016-03-01 04:24:42 +00:00
/// <summary>
/// Records the specified media source.
/// </summary>
/// <param name="mediaSource">The media source.</param>
/// <param name="targetFile">The target file.</param>
/// <param name="duration">The duration.</param>
/// <param name="onStarted">The on started.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>Task.</returns>
Task Record(MediaSourceInfo mediaSource, string targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken);
2016-02-12 07:01:38 +00:00
}
}