Interface IMediaSourceManager
Assembly: MediaBrowser.Controller.dll
public interface IMediaSourceManager
Methods
Declaration
Task AddMediaInfoWithProbe(MediaSourceInfo mediaSource, bool isAudio, bool addProbeDelay, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
MediaSourceInfo |
mediaSource |
|
System.Boolean |
isAudio |
|
System.Boolean |
addProbeDelay |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
Task AddMediaInfoWithProbeSafe(MediaSourceInfo mediaSource, bool isAudio, bool addProbeDelay, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
MediaSourceInfo |
mediaSource |
|
System.Boolean |
isAudio |
|
System.Boolean |
addProbeDelay |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Declaration
void AddParts(IEnumerable<IMediaSourceProvider> providers)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IMediaSourceProvider> |
providers |
The providers.
|
Declaration
Task CloseLiveStream(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
The live stream identifier.
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
Task.
|
Declaration
ILiveStream GetLiveStreamInfo(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Declaration
ILiveStream GetLiveStreamInfoByUniqueId(string uniqueId)
Parameters
Type |
Name |
Description |
System.String |
uniqueId |
|
Returns
Declaration
MediaSourceInfo GetLiveStreamMediaSource(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Gets the static media source.
Declaration
Task<MediaSourceInfo> GetMediaSource(BaseItem item, string mediaSourceId, string liveStreamId, bool enablePathSubstitution, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.String |
mediaSourceId |
|
System.String |
liveStreamId |
|
System.Boolean |
enablePathSubstitution |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
List<MediaStream> GetMediaStreams(BaseItem item)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<MediaStream> |
|
Declaration
List<MediaStream> GetMediaStreams(MediaStreamQuery query)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<MediaStream> |
|
Declaration
List<MediaStream> GetMediaStreams(long itemId)
Parameters
Type |
Name |
Description |
System.Int64 |
itemId |
The item identifier.
|
Returns
Type |
Description |
System.Collections.Generic.List<MediaStream> |
|
Declaration
MediaProtocol GetPathProtocol(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
Returns
Declaration
Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, bool fillChapters, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
User |
user |
|
System.Boolean |
allowMediaProbe |
|
System.Boolean |
enablePathSubstitution |
|
System.Boolean |
fillChapters |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Declaration
Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
User |
user |
|
System.Boolean |
allowMediaProbe |
|
System.Boolean |
enablePathSubstitution |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Declaration
Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, string probeMediaSourceId, bool enablePathSubstitution, bool fillChapters, DeviceProfile deviceProfile, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
User |
user |
|
System.Boolean |
allowMediaProbe |
|
System.String |
probeMediaSourceId |
|
System.Boolean |
enablePathSubstitution |
|
System.Boolean |
fillChapters |
|
DeviceProfile |
deviceProfile |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Declaration
Task<List<MediaSourceInfo>> GetPlayackMediaSources(BaseItem item, User user, bool allowMediaProbe, string probeMediaSourceId, bool enablePathSubstitution, bool fillChapters, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
User |
user |
|
System.Boolean |
allowMediaProbe |
|
System.String |
probeMediaSourceId |
|
System.Boolean |
enablePathSubstitution |
|
System.Boolean |
fillChapters |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.List<MediaSourceInfo>> |
|
Gets the static media sources.
Declaration
List<MediaSourceInfo> GetStaticMediaSources(BaseItem item, bool enablePathSubstitution, bool fillChapters, DeviceProfile deviceProfile, User user = null)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.Boolean |
enablePathSubstitution |
|
System.Boolean |
fillChapters |
|
DeviceProfile |
deviceProfile |
|
User |
user |
|
Returns
Declaration
List<MediaSourceInfo> GetStaticMediaSources(BaseItem item, bool enableAlternateMediaSources, bool enablePathSubstitution, bool fillChapters, LibraryOptions libraryOptions, DeviceProfile deviceProfile, User user = null)
Parameters
Type |
Name |
Description |
BaseItem |
item |
|
System.Boolean |
enableAlternateMediaSources |
|
System.Boolean |
enablePathSubstitution |
|
System.Boolean |
fillChapters |
|
LibraryOptions |
libraryOptions |
|
DeviceProfile |
deviceProfile |
|
User |
user |
|
Returns
Declaration
void NormalizeMediaStreams(List<MediaStream> streams)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<MediaStream> |
streams |
|
Declaration
Task<LiveStreamResponse> OpenLiveStream(LiveStreamRequest request, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
LiveStreamRequest |
request |
The request.
|
System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
Declaration
Task<Tuple<LiveStreamResponse, ILiveStream>> OpenLiveStreamInternal(LiveStreamRequest request, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
LiveStreamRequest |
request |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Declaration
void SetDefaultAudioAndSubtitleStreamIndexes(BaseItem item, MediaSourceInfo[] sources, User user)
Parameters
Declaration
bool SupportsDirectStream(ReadOnlySpan<char> path, MediaProtocol protocol)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
MediaProtocol |
protocol |
|
Returns
Type |
Description |
System.Boolean |
|
Extension Methods