java.lang.Object
com.azure.resourcemanager.mediaservices.models.TrackBase
com.azure.resourcemanager.mediaservices.models.AudioTrack

public final class AudioTrack extends TrackBase
Represents an audio track in the asset.
  • Constructor Details

    • AudioTrack

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

    • fileName

      public String fileName()
      Get the fileName property: The file name to the source file. This file is located in the storage container of the asset.
      Returns:
      the fileName value.
    • withFileName

      public AudioTrack withFileName(String fileName)
      Set the fileName property: The file name to the source file. This file is located in the storage container of the asset.
      Parameters:
      fileName - the fileName value to set.
      Returns:
      the AudioTrack object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
      Returns:
      the displayName value.
    • withDisplayName

      public AudioTrack withDisplayName(String displayName)
      Set the displayName property: The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the AudioTrack object itself.
    • languageCode

      public String languageCode()
      Get the languageCode property: The RFC5646 language code for the audio track.
      Returns:
      the languageCode value.
    • withLanguageCode

      public AudioTrack withLanguageCode(String languageCode)
      Set the languageCode property: The RFC5646 language code for the audio track.
      Parameters:
      languageCode - the languageCode value to set.
      Returns:
      the AudioTrack object itself.
    • hlsSettings

      public HlsSettings hlsSettings()
      Get the hlsSettings property: The HLS specific setting for the audio track.
      Returns:
      the hlsSettings value.
    • withHlsSettings

      public AudioTrack withHlsSettings(HlsSettings hlsSettings)
      Set the hlsSettings property: The HLS specific setting for the audio track.
      Parameters:
      hlsSettings - the hlsSettings value to set.
      Returns:
      the AudioTrack object itself.
    • dashSettings

      public DashSettings dashSettings()
      Get the dashSettings property: The DASH specific setting for the audio track.
      Returns:
      the dashSettings value.
    • withDashSettings

      public AudioTrack withDashSettings(DashSettings dashSettings)
      Set the dashSettings property: The DASH specific setting for the audio track.
      Parameters:
      dashSettings - the dashSettings value to set.
      Returns:
      the AudioTrack object itself.
    • mpeg4TrackId

      public Integer mpeg4TrackId()
      Get the mpeg4TrackId property: The MPEG-4 audio track ID for the audio track.
      Returns:
      the mpeg4TrackId value.
    • withMpeg4TrackId

      public AudioTrack withMpeg4TrackId(Integer mpeg4TrackId)
      Set the mpeg4TrackId property: The MPEG-4 audio track ID for the audio track.
      Parameters:
      mpeg4TrackId - the mpeg4TrackId value to set.
      Returns:
      the AudioTrack object itself.
    • bitRate

      public Integer bitRate()
      Get the bitRate property: The stream bit rate for the audio track.
      Returns:
      the bitRate value.
    • validate

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