Class AssetSink
java.lang.Object
com.azure.media.videoanalyzer.edge.models.SinkNodeBase
com.azure.media.videoanalyzer.edge.models.AssetSink
Enables a pipeline topology to record media to an Azure Media Services asset for subsequent playback.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the assetContainerSasUrl property: An Azure Storage SAS Url which points to container, such as the one created for an Azure Media Services asset.Get the localMediaCacheMaximumSizeMiB property: Maximum amount of disk space that can be used for temporary caching of media.Get the localMediaCachePath property: Path to a local file system directory for temporary caching of media before writing to an Asset.Get the segmentLength property: When writing media to an asset, wait until at least this duration of media has been accumulated on the Edge.setSegmentLength
(String segmentLength) Set the segmentLength property: When writing media to an asset, wait until at least this duration of media has been accumulated on the Edge.Methods inherited from class com.azure.media.videoanalyzer.edge.models.SinkNodeBase
getInputs, getName
-
Constructor Details
-
AssetSink
public AssetSink(String name, List<NodeInput> inputs, String assetContainerSasUrl, String localMediaCachePath, String localMediaCacheMaximumSizeMiB) Creates an instance of AssetSink class.- Parameters:
name
- the name value to set.inputs
- the inputs value to set.assetContainerSasUrl
- the assetContainerSasUrl value to set.localMediaCachePath
- the localMediaCachePath value to set.localMediaCacheMaximumSizeMiB
- the localMediaCacheMaximumSizeMiB value to set.
-
-
Method Details
-
getAssetContainerSasUrl
Get the assetContainerSasUrl property: An Azure Storage SAS Url which points to container, such as the one created for an Azure Media Services asset.- Returns:
- the assetContainerSasUrl value.
-
getSegmentLength
Get the segmentLength property: 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.- Returns:
- the segmentLength value.
-
setSegmentLength
Set the segmentLength property: 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.- Parameters:
segmentLength
- the segmentLength value to set.- Returns:
- the AssetSink object itself.
-
getLocalMediaCachePath
Get the localMediaCachePath property: 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.- Returns:
- the localMediaCachePath value.
-
getLocalMediaCacheMaximumSizeMiB
Get the localMediaCacheMaximumSizeMiB property: Maximum amount of disk space that can be used for temporary caching of media.- Returns:
- the localMediaCacheMaximumSizeMiB value.
-