MediaGraphAssetSink Class

Enables a media graph to record media to an Azure Media Services asset for subsequent playback.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.media.analyticsedge._generated.models._models_py3.MediaGraphSink
MediaGraphAssetSink

Constructor

MediaGraphAssetSink(*, name: str, inputs: List[azure.media.analyticsedge._generated.models._models_py3.MediaGraphNodeInput], asset_name_pattern: str, local_media_cache_path: str, local_media_cache_maximum_size_mi_b: str, segment_length: Optional[str] = None, **kwargs)

Parameters

type
str
Required

Required. The discriminator for derived types.Constant filled by server.

name
str
Required

Required. The name to be used for the media graph sink.

inputs
list[<xref:azure.media.analyticsedge.models.MediaGraphNodeInput>]
Required

Required. An array of the names of the other nodes in the media graph, the outputs of which are used as input for this sink node.

asset_name_pattern
str
Required

Required. A name pattern when creating new assets. The pattern must include at least one system variable. See the documentation for available variables and additional examples.

segment_length
str
Required

When writing media to an asset, wait until at least this duration of media has been accumulated on the Edge. Expressed in increments of 30 seconds, with a minimum of 30 seconds and a recommended maximum of 5 minutes.

local_media_cache_path
str
Required

Required. Path to a local file system directory for temporary caching of media before writing to an Asset. Used when the Edge device is temporarily disconnected from Azure.

local_media_cache_maximum_size_mi_b
str
Required

Required. Maximum amount of disk space that can be used for temporary caching of media.