2019-01-13 20:01:16 +00:00
|
|
|
using System.Collections.Generic;
|
2018-12-27 23:27:57 +00:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
{
|
2021-05-13 13:32:02 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The channel requires a media info callback.
|
|
|
|
/// </summary>
|
2018-12-27 23:27:57 +00:00
|
|
|
public interface IRequiresMediaInfoCallback
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the channel item media information.
|
|
|
|
/// </summary>
|
2021-05-13 13:32:02 +00:00
|
|
|
/// <param name="id">The channel item id.</param>
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
/// <returns>The enumerable of media source info.</returns>
|
2018-12-27 23:27:57 +00:00
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetChannelItemMediaInfo(string id, CancellationToken cancellationToken);
|
|
|
|
}
|
2019-01-13 19:30:58 +00:00
|
|
|
}
|