java.lang.Object
com.azure.media.videoanalyzer.edge.models.SinkNodeBase
com.azure.media.videoanalyzer.edge.models.AssetSink

public final class AssetSink extends SinkNodeBase
Enables a pipeline topology to record media to an Azure Media Services asset for subsequent playback.
  • 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

      public String 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

      public String 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

      public AssetSink 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. 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

      public String 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

      public String getLocalMediaCacheMaximumSizeMiB()
      Get the localMediaCacheMaximumSizeMiB property: Maximum amount of disk space that can be used for temporary caching of media.
      Returns:
      the localMediaCacheMaximumSizeMiB value.