C# Class SwiftClient.AspNetCore.VideoStreamResult

Inheritance: Microsoft.AspNetCore.Mvc.FileStreamResult
显示文件 Open project: vtfuture/SwiftClient

Public Methods

Method Description
ExecuteResultAsync ( Microsoft.AspNetCore.Mvc.ActionContext context ) : System.Threading.Tasks.Task
VideoStreamResult ( Stream fileStream, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType ) : System
VideoStreamResult ( Stream fileStream, string contentType ) : System

Protected Methods

Method Description
WriteVideoAsync ( HttpResponse response ) : System.Threading.Tasks.Task

Private Methods

Method Description
IsMultipartRequest ( Microsoft.Net.Http.Headers.RangeHeaderValue range ) : bool
IsRangeRequest ( Microsoft.Net.Http.Headers.RangeHeaderValue range ) : bool
WriteDataToResponseBody ( HttpResponse response, Microsoft.Net.Http.Headers.RangeItemHeaderValue rangeValue ) : System.Threading.Tasks.Task

Method Details

ExecuteResultAsync() public method

public ExecuteResultAsync ( Microsoft.AspNetCore.Mvc.ActionContext context ) : System.Threading.Tasks.Task
context Microsoft.AspNetCore.Mvc.ActionContext
return System.Threading.Tasks.Task

VideoStreamResult() public method

public VideoStreamResult ( Stream fileStream, Microsoft.Net.Http.Headers.MediaTypeHeaderValue contentType ) : System
fileStream Stream
contentType Microsoft.Net.Http.Headers.MediaTypeHeaderValue
return System

VideoStreamResult() public method

public VideoStreamResult ( Stream fileStream, string contentType ) : System
fileStream Stream
contentType string
return System

WriteVideoAsync() protected method

protected WriteVideoAsync ( HttpResponse response ) : System.Threading.Tasks.Task
response HttpResponse
return System.Threading.Tasks.Task