jellyfin/MediaBrowser.Controller/Library/ILiveStream.cs

34 lines
645 B
C#
Raw Normal View History

#nullable disable
#pragma warning disable CA1711, CS1591
2023-12-05 19:26:35 +00:00
using System;
using System.IO;
using System.Threading;
2018-12-27 23:27:57 +00:00
using System.Threading.Tasks;
using MediaBrowser.Model.Dto;
namespace MediaBrowser.Controller.Library
{
2023-12-05 19:26:35 +00:00
public interface ILiveStream : IDisposable
2018-12-27 23:27:57 +00:00
{
int ConsumerCount { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
string OriginalStreamId { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
string TunerHostId { get; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
bool EnableStreamSharing { get; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
MediaSourceInfo MediaSource { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
string UniqueId { get; }
Task Open(CancellationToken openCancellationToken);
Task Close();
2021-09-10 07:56:48 +00:00
Stream GetStream();
2018-12-27 23:27:57 +00:00
}
}