Class SelectAudioTrackByAttribute


public final class SelectAudioTrackByAttribute extends AudioTrackDescriptor
Select audio tracks from the input by specifying an attribute and an attribute filter.
  • Constructor Details

    • SelectAudioTrackByAttribute

      public SelectAudioTrackByAttribute()
      Creates an instance of SelectAudioTrackByAttribute class.
  • Method Details

    • attribute

      public TrackAttribute attribute()
      Get the attribute property: The TrackAttribute to filter the tracks by.
      Returns:
      the attribute value.
    • withAttribute

      public SelectAudioTrackByAttribute withAttribute(TrackAttribute attribute)
      Set the attribute property: The TrackAttribute to filter the tracks by.
      Parameters:
      attribute - the attribute value to set.
      Returns:
      the SelectAudioTrackByAttribute object itself.
    • filter

      public AttributeFilter filter()
      Get the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
      Returns:
      the filter value.
    • withFilter

      public SelectAudioTrackByAttribute withFilter(AttributeFilter filter)
      Set the filter property: The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks.
      Parameters:
      filter - the filter value to set.
      Returns:
      the SelectAudioTrackByAttribute object itself.
    • filterValue

      public String filterValue()
      Get the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property.
      Returns:
      the filterValue value.
    • withFilterValue

      public SelectAudioTrackByAttribute withFilterValue(String filterValue)
      Set the filterValue property: The value to filter the tracks by. Only used when AttributeFilter.ValueEquals is specified for the Filter property.
      Parameters:
      filterValue - the filterValue value to set.
      Returns:
      the SelectAudioTrackByAttribute object itself.
    • withChannelMapping

      public SelectAudioTrackByAttribute withChannelMapping(ChannelMapping channelMapping)
      Set the channelMapping property: Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks.
      Overrides:
      withChannelMapping in class AudioTrackDescriptor
      Parameters:
      channelMapping - the channelMapping value to set.
      Returns:
      the AudioTrackDescriptor object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class AudioTrackDescriptor
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.