Class SelectVideoTrackByAttribute


public final class SelectVideoTrackByAttribute extends VideoTrackDescriptor
Select video tracks from the input by specifying an attribute and an attribute filter.
  • Constructor Details

    • SelectVideoTrackByAttribute

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

    • attribute

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

      public SelectVideoTrackByAttribute withAttribute(TrackAttribute attribute)
      Set the attribute property: The TrackAttribute to filter the tracks by.
      Parameters:
      attribute - the attribute value to set.
      Returns:
      the SelectVideoTrackByAttribute 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 SelectVideoTrackByAttribute 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 SelectVideoTrackByAttribute 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. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks.
      Returns:
      the filterValue value.
    • withFilterValue

      public SelectVideoTrackByAttribute 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. For TrackAttribute.Bitrate, this should be an integer value in bits per second (e.g: '1500000'). The TrackAttribute.Language is not supported for video tracks.
      Parameters:
      filterValue - the filterValue value to set.
      Returns:
      the SelectVideoTrackByAttribute object itself.
    • validate

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