Class AudioReference
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.track.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 Summary
Fields Modifier and Type Field Description MediaContainerDescriptorcontainerDescriptorKnown probe and probe settings of the item to be loaded.java.lang.StringidentifierThe identifier of the other item.static AudioReferenceNO_TRACKjava.lang.StringtitleThe title of the other item, if known.
-
Constructor Summary
Constructors Constructor Description AudioReference(java.lang.String identifier, java.lang.String title)AudioReference(java.lang.String identifier, java.lang.String title, MediaContainerDescriptor containerDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArtworkUrl()java.lang.StringgetAuthor()java.lang.StringgetIdentifier()java.lang.StringgetISRC()java.lang.LonggetLength()java.lang.StringgetTitle()java.lang.StringgetUri()
-
-
-
Field Detail
-
NO_TRACK
public static final AudioReference NO_TRACK
-
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:
getTitlein interfaceAudioTrackInfoProvider- Returns:
- Track title, or
nullif this provider does not know it.
-
getAuthor
public java.lang.String getAuthor()
- Specified by:
getAuthorin interfaceAudioTrackInfoProvider- Returns:
- Track author, or
nullif this provider does not know it.
-
getLength
public java.lang.Long getLength()
- Specified by:
getLengthin interfaceAudioTrackInfoProvider- Returns:
- Track length in milliseconds, or
nullif this provider does not know it.
-
getIdentifier
public java.lang.String getIdentifier()
- Specified by:
getIdentifierin interfaceAudioTrackInfoProvider- Returns:
- Track identifier, or
nullif this provider does not know it.
-
getUri
public java.lang.String getUri()
- Specified by:
getUriin interfaceAudioTrackInfoProvider- Returns:
- Track URI, or
nullif this provider does not know it.
-
getArtworkUrl
public java.lang.String getArtworkUrl()
- Specified by:
getArtworkUrlin interfaceAudioTrackInfoProvider
-
getISRC
public java.lang.String getISRC()
- Specified by:
getISRCin interfaceAudioTrackInfoProvider
-
-