2015-03-07 22:43:53 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using MediaBrowser.Controller.Persistence;
|
|
|
|
|
using MediaBrowser.Model.Dto;
|
2015-02-07 21:03:09 +00:00
|
|
|
|
using MediaBrowser.Model.Entities;
|
2015-03-03 07:03:17 +00:00
|
|
|
|
using System;
|
2015-02-07 21:03:09 +00:00
|
|
|
|
using System.Collections.Generic;
|
2015-03-07 22:43:53 +00:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2015-02-07 21:03:09 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Library
|
|
|
|
|
{
|
|
|
|
|
public interface IMediaSourceManager
|
|
|
|
|
{
|
2015-03-07 22:43:53 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Adds the parts.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="providers">The providers.</param>
|
|
|
|
|
void AddParts(IEnumerable<IMediaSourceProvider> providers);
|
|
|
|
|
|
2015-03-03 07:03:17 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the media streams.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="itemId">The item identifier.</param>
|
|
|
|
|
/// <returns>IEnumerable<MediaStream>.</returns>
|
|
|
|
|
IEnumerable<MediaStream> GetMediaStreams(Guid itemId);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the media streams.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="mediaSourceId">The media source identifier.</param>
|
|
|
|
|
/// <returns>IEnumerable<MediaStream>.</returns>
|
|
|
|
|
IEnumerable<MediaStream> GetMediaStreams(string mediaSourceId);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the media streams.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="query">The query.</param>
|
|
|
|
|
/// <returns>IEnumerable<MediaStream>.</returns>
|
2015-02-07 21:03:09 +00:00
|
|
|
|
IEnumerable<MediaStream> GetMediaStreams(MediaStreamQuery query);
|
2015-03-07 22:43:53 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the playack media sources.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <param name="userId">The user identifier.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>IEnumerable<MediaSourceInfo>.</returns>
|
|
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetPlayackMediaSources(string id, string userId, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the playack media sources.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id">The identifier.</param>
|
|
|
|
|
/// <param name="cancellationToken">The cancellation token.</param>
|
|
|
|
|
/// <returns>Task<IEnumerable<MediaSourceInfo>>.</returns>
|
|
|
|
|
Task<IEnumerable<MediaSourceInfo>> GetPlayackMediaSources(string id, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the static media sources.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="enablePathSubstitution">if set to <c>true</c> [enable path substitution].</param>
|
|
|
|
|
/// <param name="user">The user.</param>
|
|
|
|
|
/// <returns>IEnumerable<MediaSourceInfo>.</returns>
|
|
|
|
|
IEnumerable<MediaSourceInfo> GetStaticMediaSources(IHasMediaSources item, bool enablePathSubstitution, User user);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the static media source.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="item">The item.</param>
|
|
|
|
|
/// <param name="mediaSourceId">The media source identifier.</param>
|
|
|
|
|
/// <param name="enablePathSubstitution">if set to <c>true</c> [enable path substitution].</param>
|
|
|
|
|
/// <returns>MediaSourceInfo.</returns>
|
|
|
|
|
MediaSourceInfo GetStaticMediaSource(IHasMediaSources item, string mediaSourceId, bool enablePathSubstitution);
|
2015-02-07 21:03:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|