2016-02-12 00:01:38 -07:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
|
2016-11-03 16:35:19 -07:00
|
|
|
|
namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
2016-02-12 00:01:38 -07:00
|
|
|
|
{
|
|
|
|
|
public interface IRecorder
|
|
|
|
|
{
|
2016-02-29 21:24:42 -07: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-05-09 22:15:06 -07:00
|
|
|
|
|
|
|
|
|
string GetOutputPath(MediaSourceInfo mediaSource, string targetFile);
|
2016-02-12 00:01:38 -07:00
|
|
|
|
}
|
|
|
|
|
}
|