C # Streaming video with reduced quality over HTTP

I have very large, high-quality videos that I need to transfer over HTTP (for mobile devices). Cannot use ffmpeg to create a streamed version of a video.

I must also support the HTTP seek / begin function so that the user can skip in the video.

I am using ServiceStack (not IIS).

Are there any options?

I have access to the server, so any third-party services are acceptable.

+5
source share
1 answer

, -. v3.9.44 ServiceStack NuGet, - ( ServiceStack , ).

, / ( ServiceStack), , :

:

return new HttpResult(new FileInfo(filePath), request.MimeType);

:

return new HttpResult(byteArray, "audio/mpeg");

:

return new HttpResult(memoryStream, "audio/mpeg");

:

return new HttpResult(customText, "text/plain");

:

Config.AllowPartialResponses = false;
+4

All Articles