Click or drag to resize

MediasClientGetChunkAsync(Guid, Int64, Int64) 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.V1
Assembly: Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.29.8-dev
Syntax
C#
public Task<Stream> GetChunkAsync(
	Guid mediaId,
	long offset,
	long length
)

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

Return Value

TaskStream
See Also