2021-05-06 15:39:20 -07:00
|
|
|
#nullable disable
|
|
|
|
|
2021-07-24 10:58:50 -07:00
|
|
|
#pragma warning disable CA1711, CS1591
|
2020-08-22 12:56:24 -07:00
|
|
|
|
2021-09-10 00:29:14 -07:00
|
|
|
using System.IO;
|
2019-01-13 13:01:16 -07:00
|
|
|
using System.Threading;
|
2018-12-27 16:27:57 -07:00
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
{
|
|
|
|
public interface ILiveStream
|
|
|
|
{
|
|
|
|
int ConsumerCount { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
string OriginalStreamId { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
string TunerHostId { get; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
bool EnableStreamSharing { get; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
MediaSourceInfo MediaSource { get; set; }
|
2020-06-15 14:43:52 -07:00
|
|
|
|
2018-12-27 16:27:57 -07:00
|
|
|
string UniqueId { get; }
|
2020-08-22 12:56:24 -07:00
|
|
|
|
|
|
|
Task Open(CancellationToken openCancellationToken);
|
|
|
|
|
|
|
|
Task Close();
|
2021-09-10 00:29:14 -07:00
|
|
|
|
2021-09-10 00:56:48 -07:00
|
|
|
Stream GetStream();
|
2018-12-27 16:27:57 -07:00
|
|
|
}
|
|
|
|
}
|