Class AudioReference

  • All Implemented Interfaces:
    AudioItem, AudioTrackInfoProvider

    public class AudioReference
    extends java.lang.Object
    implements AudioItem, AudioTrackInfoProvider
    An audio item which refers to an unloaded audio item. Source managers can return this to indicate a redirection, which means that the item referred to in it is loaded instead.
    • Field Detail

      • identifier

        public final java.lang.String identifier
        The identifier of the other item.
      • title

        public final java.lang.String title
        The title of the other item, if known.
      • containerDescriptor

        public final MediaContainerDescriptor containerDescriptor
        Known probe and probe settings of the item to be loaded.
    • Constructor Detail

      • AudioReference

        public AudioReference​(java.lang.String identifier,
                              java.lang.String title)
        Parameters:
        identifier - The identifier of the other item.
        title - The title of the other item, if known.
      • AudioReference

        public AudioReference​(java.lang.String identifier,
                              java.lang.String title,
                              MediaContainerDescriptor containerDescriptor)
        Parameters:
        identifier - The identifier of the other item.
        title - The title of the other item, if known.
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Specified by:
        getTitle in interface AudioTrackInfoProvider
        Returns:
        Track title, or null if this provider does not know it.
      • getAuthor

        public java.lang.String getAuthor()
        Specified by:
        getAuthor in interface AudioTrackInfoProvider
        Returns:
        Track author, or null if this provider does not know it.
      • getLength

        public java.lang.Long getLength()
        Specified by:
        getLength in interface AudioTrackInfoProvider
        Returns:
        Track length in milliseconds, or null if this provider does not know it.
      • getIdentifier

        public java.lang.String getIdentifier()
        Specified by:
        getIdentifier in interface AudioTrackInfoProvider
        Returns:
        Track identifier, or null if this provider does not know it.
      • getUri

        public java.lang.String getUri()
        Specified by:
        getUri in interface AudioTrackInfoProvider
        Returns:
        Track URI, or null if this provider does not know it.