Click or drag to resize

MediasClient Methods

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.

The MediasClient type exposes the following members.

Methods
 NameDescription
Public methodBeginUpload Begins a media upload with an given id. If the Id is null, a new id will be returned
Public methodBeginUploadAsync Begins a media upload with an given id. If the Id is null, a new id will be returned
Public methodDelete Deletes a media file
Public methodDeleteAsync Deletes a media file
Public methodFinalizeUpload Finalizes the media upload, and processes the file.
Public methodFinalizeUploadAsync Finalizes the media upload, and processes the file.
Public methodGetChunk(Guid, Int64, Int64) Gets a piece of a file
Public methodGetChunk(Guid, Int64, Int64, Stream) Gets a piece of a file
Public methodGetChunkAsync(Guid, Int64, Int64) Gets a piece of a file
Public methodGetChunkAsync(Guid, Int64, Int64, Stream) Gets a piece of a file
Public methodGetFile(Guid) Gets a file
Public methodGetFile(Guid, Stream) Gets a file
Public methodGetFileAsync(Guid) Gets a file
Public methodGetFileAsync(Guid, Stream) Gets a file
Public methodGetFileStats Gets file stats about a media-file
Public methodGetFileStatsAsync Gets media meta-data
Public methodGetMediaData Gets media meta-data
Public methodGetMediaDataAsync Gets media meta-data
Public methodGetScaled(Guid, Int32, Int32) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaled(Guid, Int32, Int32, Stream) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaledAsync(Guid, Int32, Int32) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetScaledAsync(Guid, Int32, Int32, Stream) Gets an image scaled to match submitted max width or max height. If the image is smaller than the requested dimensions, the original image is returned.
Public methodGetThumbnail(Guid, Int32, Int32) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnail(Guid, Int32, Int32, Stream) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnailAsync(Guid, Int32, Int32) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodGetThumbnailAsync(Guid, Int32, Int32, Stream) Gets an thumbnail of a media scaled to match submitted max width or max height. If the media is an image and the image is smaller than the requested dimensions, the original image is returned. If anything else than an image is requested, the service returns a standard thumbnail matching the requested dimensions.
Public methodSaveChunk(SaveChunkRequest) Writes a chunk of data to the file.
Public methodSaveChunk(Guid, Int64, Byte) Writes a chunk of data to the file.
Public methodSaveChunkAsync(SaveChunkRequest) Writes a chunk of data to the file.
Public methodSaveChunkAsync(Guid, Int64, Byte) Writes a chunk of data to the file.
Public methodUpload Uploads a file to the service. Bundles BeginUpload, SaveChunk(s), and FinalizeUpload into one.
Public methodUploadAsync Uploads a file to the service. Bundles BeginUpload, SaveChunk(s), and FinalizeUpload into one.
Top
See Also