forked from kookxiang/jellyfin-plugin-bangumi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kookxiang#82 , close kookxiang#164
- Loading branch information
Showing
3 changed files
with
132 additions
and
1 deletion.
There are no files selected for viewing
122 changes: 122 additions & 0 deletions
122
Jellyfin.Plugin.Bangumi.Test/Mock/MockedMediaSourceManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
using Jellyfin.Data.Entities; | ||
using MediaBrowser.Controller.Entities; | ||
using MediaBrowser.Controller.Library; | ||
using MediaBrowser.Controller.LiveTv; | ||
using MediaBrowser.Controller.Persistence; | ||
using MediaBrowser.Model.Dto; | ||
using MediaBrowser.Model.Entities; | ||
using MediaBrowser.Model.MediaInfo; | ||
|
||
namespace Jellyfin.Plugin.Bangumi.Test.Mock; | ||
|
||
public class MockedMediaSourceManager : IMediaSourceManager | ||
{ | ||
public Task AddMediaInfoWithProbe(MediaSourceInfo mediaSource, bool isAudio, string cacheKey, bool addProbeDelay, bool isLiveStream, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void AddParts(IEnumerable<IMediaSourceProvider> providers) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task CloseLiveStream(string id) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<MediaSourceInfo> GetLiveStream(string id, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public ILiveStream GetLiveStreamInfo(string id) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public ILiveStream GetLiveStreamInfoByUniqueId(string uniqueId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<MediaSourceInfo> GetLiveStreamMediaInfo(string id, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<Tuple<MediaSourceInfo, IDirectStreamProvider>> GetLiveStreamWithDirectStreamProvider(string id, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public List<MediaAttachment> GetMediaAttachments(Guid itemId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public List<MediaAttachment> GetMediaAttachments(MediaAttachmentQuery query) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<MediaSourceInfo> GetMediaSource(BaseItem item, string mediaSourceId, string liveStreamId, bool enablePathSubstitution, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public List<MediaStream> GetMediaStreams(Guid itemId) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public List<MediaStream> GetMediaStreams(MediaStreamQuery query) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public MediaProtocol GetPathProtocol(string path) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<List<MediaSourceInfo>> GetPlaybackMediaSources(BaseItem item, User user, bool allowMediaProbe, bool enablePathSubstitution, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<List<MediaSourceInfo>> GetRecordingStreamMediaSources(ActiveRecordingInfo info, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public List<MediaSourceInfo> GetStaticMediaSources(BaseItem item, bool enablePathSubstitution, User user = null) | ||
{ | ||
return null; | ||
} | ||
|
||
public Task<LiveStreamResponse> OpenLiveStream(LiveStreamRequest request, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public Task<Tuple<LiveStreamResponse, IDirectStreamProvider>> OpenLiveStreamInternal(LiveStreamRequest request, CancellationToken cancellationToken) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public void SetDefaultAudioAndSubtitleStreamIndices(BaseItem item, MediaSourceInfo source, User user) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public bool SupportsDirectStream(string path, MediaProtocol protocol) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters