aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-12 15:27:26 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-12 15:27:26 -0400
commita660aa001eb31e91d040e066787fa764cf5f0fb4 (patch)
tree0bff0b393b98d1c74cc7383590c3826e95f36aff /Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs
parent29185eb9bd964e800b29282d91c8e36828460eb3 (diff)
re-organize file streaming
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs b/Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs
index 36f795411..a497ee715 100644
--- a/Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs
+++ b/Emby.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpResponse.cs
@@ -3,6 +3,9 @@ using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using MediaBrowser.Model.IO;
using MediaBrowser.Model.Logging;
using SocketHttpListener.Net;
using HttpListenerResponse = SocketHttpListener.Net.HttpListenerResponse;
@@ -189,5 +192,10 @@ namespace Emby.Server.Implementations.HttpServer.SocketSharp
public void ClearCookies()
{
}
+
+ public Task TransmitFile(string path, long offset, long count, CancellationToken cancellationToken)
+ {
+ return _response.TransmitFile(path, offset, count, cancellationToken);
+ }
}
}