diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-29 00:56:39 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-29 00:56:39 -0400 |
| commit | 578dec0c71361be17eed68f82f20840807a9c9f4 (patch) | |
| tree | 3053858f175c2bfca6eb44df95723cf7c2e4876d /MediaBrowser.Controller/Library/IMediaSourceManager.cs | |
| parent | bd2ea703e31522d505407a33089b95f997f6b062 (diff) | |
update stream generation
Diffstat (limited to 'MediaBrowser.Controller/Library/IMediaSourceManager.cs')
| -rw-r--r-- | MediaBrowser.Controller/Library/IMediaSourceManager.cs | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Library/IMediaSourceManager.cs b/MediaBrowser.Controller/Library/IMediaSourceManager.cs index fda17aa27..292205c03 100644 --- a/MediaBrowser.Controller/Library/IMediaSourceManager.cs +++ b/MediaBrowser.Controller/Library/IMediaSourceManager.cs @@ -84,17 +84,34 @@ namespace MediaBrowser.Controller.Library /// <summary> /// Opens the media source. /// </summary> - /// <param name="openKey">The open key.</param> + /// <param name="openToken">The open token.</param> + /// <param name="enableAutoClose">if set to <c>true</c> [enable automatic close].</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task<MediaSourceInfo>.</returns> - Task<MediaSourceInfo> OpenMediaSource(string openKey, CancellationToken cancellationToken); + Task<MediaSourceInfo> OpenLiveStream(string openToken, bool enableAutoClose, CancellationToken cancellationToken); + + /// <summary> + /// Gets the live stream. + /// </summary> + /// <param name="id">The identifier.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task<MediaSourceInfo>.</returns> + Task<MediaSourceInfo> GetLiveStream(string id, CancellationToken cancellationToken); + + /// <summary> + /// Pings the media source. + /// </summary> + /// <param name="id">The live stream identifier.</param> + /// <param name="cancellationToken">The cancellation token.</param> + /// <returns>Task.</returns> + Task PingLiveStream(string id, CancellationToken cancellationToken); /// <summary> /// Closes the media source. /// </summary> - /// <param name="closeKey">The close key.</param> + /// <param name="id">The live stream identifier.</param> /// <param name="cancellationToken">The cancellation token.</param> /// <returns>Task.</returns> - Task CloseMediaSource(string closeKey, CancellationToken cancellationToken); + Task CloseLiveStream(string id, CancellationToken cancellationToken); } } |
