You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
937 B
28 lines
937 B
#pragma warning disable CS1591
|
|
#pragma warning disable SA1600
|
|
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
{
|
|
public interface IMediaSourceProvider
|
|
{
|
|
/// <summary>
|
|
/// Gets the media sources.
|
|
/// </summary>
|
|
/// <param name="item">The item.</param>
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
/// <returns>Task<IEnumerable<MediaSourceInfo>>.</returns>
|
|
Task<IEnumerable<MediaSourceInfo>> GetMediaSources(BaseItem item, CancellationToken cancellationToken);
|
|
|
|
/// <summary>
|
|
/// Opens the media source.
|
|
/// </summary>
|
|
Task<ILiveStream> OpenMediaSource(string openToken, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken);
|
|
}
|
|
}
|