MediasClientGetChunkAsync(Guid, Int64, Int64, Stream) Method |
To get started, call one of the following methods:
- Anysense.API.Client.V1.ApiClient.Create
- Anysense.API.Client.V1.ApiClient.CreateAsync
- Anysense.API.Client.V1.ApiClient.CreateWithToken
- Anysense.API.Client.V1.ApiClient.CreateWithTokenAsync
See Anysense.API.Client.Shared.BaseClient<T> for documentation on these methods.
Gets a piece of a file
Namespace: Anysense.API.Client.V1Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.31.15+d671d89394079ff2411e503098d3578f08c2de86
Syntax public Task GetChunkAsync(
Guid mediaId,
long offset,
long length,
Stream targetStream
)
Parameters
- mediaId Guid
-
The id of the media to download.
If the returned chunk is smaller than the requested size, it should be considered end of file.
- offset Int64
- The offset of the file. This should be the current downloaded length. The index is zero-based
- length Int64
- The requested size
- targetStream Stream
-
Return Value
TaskSee Also