aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2023-12-28 15:15:03 -0500
committerPatrick Barron <barronpm@gmail.com>2024-01-09 10:16:56 -0500
commitc1a3084312fa4fb7796b83640bfe9ad2b5044afa (patch)
treeb7e81594c3782128d37f875a0ce54d0bad12c6e5 /Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
parent7eba162879f6d1ff04539cac5c0d6372a955d82b (diff)
Move LiveTv to separate project
Diffstat (limited to 'Emby.Server.Implementations/Library/ExclusiveLiveStream.cs')
-rw-r--r--Emby.Server.Implementations/Library/ExclusiveLiveStream.cs60
1 files changed, 0 insertions, 60 deletions
diff --git a/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs b/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
deleted file mode 100644
index b1649afad..000000000
--- a/Emby.Server.Implementations/Library/ExclusiveLiveStream.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-#nullable disable
-
-#pragma warning disable CS1591
-
-using System;
-using System.Globalization;
-using System.IO;
-using System.Threading;
-using System.Threading.Tasks;
-using MediaBrowser.Controller.Library;
-using MediaBrowser.Model.Dto;
-
-namespace Emby.Server.Implementations.Library
-{
- public sealed class ExclusiveLiveStream : ILiveStream
- {
- private readonly Func<Task> _closeFn;
-
- public ExclusiveLiveStream(MediaSourceInfo mediaSource, Func<Task> closeFn)
- {
- MediaSource = mediaSource;
- EnableStreamSharing = false;
- _closeFn = closeFn;
- ConsumerCount = 1;
- UniqueId = Guid.NewGuid().ToString("N", CultureInfo.InvariantCulture);
- }
-
- public int ConsumerCount { get; set; }
-
- public string OriginalStreamId { get; set; }
-
- public string TunerHostId => null;
-
- public bool EnableStreamSharing { get; set; }
-
- public MediaSourceInfo MediaSource { get; set; }
-
- public string UniqueId { get; }
-
- public Task Close()
- {
- return _closeFn();
- }
-
- public Stream GetStream()
- {
- throw new NotSupportedException();
- }
-
- public Task Open(CancellationToken openCancellationToken)
- {
- return Task.CompletedTask;
- }
-
- /// <inheritdoc />
- public void Dispose()
- {
- }
- }
-}