Class YoutubeTrackFormat
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeTrackFormat
-
public class YoutubeTrackFormat extends java.lang.ObjectDescribes an available media format for a track
-
-
Constructor Summary
Constructors Constructor Description YoutubeTrackFormat(org.apache.http.entity.ContentType type, long bitrate, long contentLength, long audioChannels, java.lang.String url, java.lang.String nParameter, java.lang.String signature, java.lang.String signatureKey, boolean isDefaultAudioTrack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAudioChannels()longgetBitrate()longgetContentLength()YoutubeFormatInfogetInfo()java.lang.StringgetNParameter()java.lang.StringgetSignature()java.lang.StringgetSignatureKey()org.apache.http.entity.ContentTypegetType()java.net.URIgetUrl()booleanisDefaultAudioTrack()
-
-
-
Constructor Detail
-
YoutubeTrackFormat
public YoutubeTrackFormat(org.apache.http.entity.ContentType type, long bitrate, long contentLength, long audioChannels, java.lang.String url, java.lang.String nParameter, java.lang.String signature, java.lang.String signatureKey, boolean isDefaultAudioTrack)- Parameters:
type- Mime type of the formatbitrate- Bitrate of the formatcontentLength- Length in bytes of the mediaaudioChannels- Number of audio channelsurl- Base URL for the playback of this formatnParameter- n parameter for this formatsignature- Cipher signature for this formatsignatureKey- The key to use for deciphered signature in the final playback URL
-
-
Method Detail
-
getInfo
public YoutubeFormatInfo getInfo()
- Returns:
- Format container and codec info
-
getType
public org.apache.http.entity.ContentType getType()
- Returns:
- Mime type of the format
-
getBitrate
public long getBitrate()
- Returns:
- Bitrate of the format
-
getAudioChannels
public long getAudioChannels()
- Returns:
- Count of audio channels in format
-
getUrl
public java.net.URI getUrl()
- Returns:
- Base URL for the playback of this format
-
getContentLength
public long getContentLength()
- Returns:
- Length in bytes of the media
-
getNParameter
public java.lang.String getNParameter()
- Returns:
- n parameter for this format
-
getSignature
public java.lang.String getSignature()
- Returns:
- Cipher signature for this format
-
getSignatureKey
public java.lang.String getSignatureKey()
- Returns:
- The key to use for deciphered signature in the final playback URL
-
isDefaultAudioTrack
public boolean isDefaultAudioTrack()
- Returns:
- Whether this format contains an audio track that is used by default.
-
-