Interface IMediaSourceProvider
Namespace: MediaBrowser.Controller.Library
Assembly: MediaBrowser.Controller.dll
Syntax
public interface IMediaSourceProvider
Methods
GetMediaSources(BaseItem, CancellationToken)
Gets the media sources.
Declaration
Task<List<MediaSourceInfo>> GetMediaSources(BaseItem item, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
BaseItem | item | The item. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
OpenMediaSource(String, List<ILiveStream>, CancellationToken)
Opens the media source.
Declaration
Task<ILiveStream> OpenMediaSource(string openToken, List<ILiveStream> currentLiveStreams, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | openToken | |
System.Collections.Generic.List<ILiveStream> | currentLiveStreams | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ILiveStream> |