Interface Track.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Track.Builder,Track>, SdkBuilder<Track.Builder,Track>, SdkPojo
Enclosing class:
Track

@Mutable @NotThreadSafe public static interface Track.Builder extends SdkPojo, CopyableBuilder<Track.Builder,Track>
  • Method Details

    • audioProperties

      Track.Builder audioProperties(AudioProperties audioProperties)
      Details about the media file's audio track.
      Parameters:
      audioProperties - Details about the media file's audio track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audioProperties

      default Track.Builder audioProperties(Consumer<AudioProperties.Builder> audioProperties)
      Details about the media file's audio track. This is a convenience method that creates an instance of the AudioProperties.Builder avoiding the need to create one manually via AudioProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to audioProperties(AudioProperties).

      Parameters:
      audioProperties - a consumer that will call methods on AudioProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codec

      Track.Builder codec(String codec)
      The codec of the audio or video track, or caption format of the data track.
      Parameters:
      codec - The codec of the audio or video track, or caption format of the data track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • codec

      Track.Builder codec(Codec codec)
      The codec of the audio or video track, or caption format of the data track.
      Parameters:
      codec - The codec of the audio or video track, or caption format of the data track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • dataProperties

      Track.Builder dataProperties(DataProperties dataProperties)
      Details about the media file's data track.
      Parameters:
      dataProperties - Details about the media file's data track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataProperties

      default Track.Builder dataProperties(Consumer<DataProperties.Builder> dataProperties)
      Details about the media file's data track. This is a convenience method that creates an instance of the DataProperties.Builder avoiding the need to create one manually via DataProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to dataProperties(DataProperties).

      Parameters:
      dataProperties - a consumer that will call methods on DataProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • duration

      Track.Builder duration(Double duration)
      The duration of the track, in seconds.
      Parameters:
      duration - The duration of the track, in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • index

      Track.Builder index(Integer index)
      The unique index number of the track, starting at 1.
      Parameters:
      index - The unique index number of the track, starting at 1.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trackType

      Track.Builder trackType(String trackType)
      The type of track: video, audio, or data.
      Parameters:
      trackType - The type of track: video, audio, or data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • trackType

      Track.Builder trackType(TrackType trackType)
      The type of track: video, audio, or data.
      Parameters:
      trackType - The type of track: video, audio, or data.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • videoProperties

      Track.Builder videoProperties(VideoProperties videoProperties)
      Details about the media file's video track.
      Parameters:
      videoProperties - Details about the media file's video track.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • videoProperties

      default Track.Builder videoProperties(Consumer<VideoProperties.Builder> videoProperties)
      Details about the media file's video track. This is a convenience method that creates an instance of the VideoProperties.Builder avoiding the need to create one manually via VideoProperties.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to videoProperties(VideoProperties).

      Parameters:
      videoProperties - a consumer that will call methods on VideoProperties.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: