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