Click or drag to resize

MediasClient Class

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.
Handles media access
Inheritance Hierarchy
SystemObject
  Anysense.API.Client.SharedApiHandlerApiClient
    Anysense.API.Client.V1MediasClient

Namespace:  Anysense.API.Client.V1
Assembly:  Anysense.API.Client (in Anysense.API.Client.dll) Version: 1.14.0.1-dev
Syntax
public class MediasClient : ApiHandler<ApiClient>

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
Writes a chunk of data to the file.
Public methodSaveChunkAsync
Writes a chunk of data to the file.
Top
See Also