Created
October 30, 2020 16:49
-
-
Save vertonghenb/d9ea6b5987d27771af0a489759058342 to your computer and use it in GitHub Desktop.
Stream from Azure Blob
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
[Route("api/test")] | |
[HttpGet] | |
public async Task<IActionResult> Test() { | |
var contentType = "multipart/x-mixed-replace;boundary=myboundary"; | |
Stream stream = await client.Value.GetStreamAsync(WebCamUrl); | |
var result = new FileStreamResult(stream, contentType) { | |
EnableRangeProcessing = true | |
}; | |
return result; | |
} |
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
<video autoplay src="localhost:52867/api/test" controls="true"></video> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment