Class SelectAudioTrackById


public final class SelectAudioTrackById extends AudioTrackDescriptor
Select audio tracks from the input by specifying a track identifier.
  • Constructor Details

    • SelectAudioTrackById

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

    • trackId

      public long trackId()
      Get the trackId property: Track identifier to select.
      Returns:
      the trackId value.
    • withTrackId

      public SelectAudioTrackById withTrackId(long trackId)
      Set the trackId property: Track identifier to select.
      Parameters:
      trackId - the trackId value to set.
      Returns:
      the SelectAudioTrackById object itself.
    • withChannelMapping

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