2019-01-13 13:01:16 -07:00
|
|
|
using System.Collections.Generic;
|
2018-12-27 16:27:57 -07:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using MediaBrowser.Model.Dto;
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Channels
|
|
|
|
{
|
2021-05-13 06:32:02 -07:00
|
|
|
/// <summary>
|
|
|
|
/// The channel requires a media info callback.
|
|
|
|
/// </summary>
|
2018-12-27 16:27:57 -07:00
|
|
|
public interface IRequiresMediaInfoCallback
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the channel item media information.
|
|
|
|
/// </summary>
|
2021-05-13 06:32:02 -07: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 16:27:57 -07:00
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetChannelItemMediaInfo(string id, CancellationToken cancellationToken);
|
|
|
|
}
|
2019-01-13 12:30:58 -07:00
|
|
|
}
|