2020-02-06 14:20:23 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
#pragma warning disable SA1600
|
|
|
|
|
2019-01-13 19:54:44 +00:00
|
|
|
using System;
|
2016-02-12 07:01:38 +00:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2017-05-15 19:45:39 +00:00
|
|
|
using MediaBrowser.Controller.Library;
|
2016-02-12 07:01:38 +00:00
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
2016-11-03 23:35:19 +00:00
|
|
|
namespace Emby.Server.Implementations.LiveTv.EmbyTV
|
2016-02-12 07:01:38 +00:00
|
|
|
{
|
|
|
|
public interface IRecorder
|
|
|
|
{
|
2016-03-01 04:24:42 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Records the specified media source.
|
|
|
|
/// </summary>
|
2017-05-15 19:45:39 +00:00
|
|
|
Task Record(IDirectStreamProvider directStreamProvider, MediaSourceInfo mediaSource, string targetFile, TimeSpan duration, Action onStarted, CancellationToken cancellationToken);
|
2016-05-10 05:15:06 +00:00
|
|
|
|
|
|
|
string GetOutputPath(MediaSourceInfo mediaSource, string targetFile);
|
2016-02-12 07:01:38 +00:00
|
|
|
}
|
|
|
|
}
|