Class ProbingAudioSourceManager
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.source.ProbingAudioSourceManager
-
- All Implemented Interfaces:
AudioSourceManager
- Direct Known Subclasses:
HttpAudioSourceManager,LocalAudioSourceManager
public abstract class ProbingAudioSourceManager extends java.lang.Object implements AudioSourceManager
The base class for audio sources which use probing to detect container type.
-
-
Field Summary
Fields Modifier and Type Field Description protected MediaContainerRegistrycontainerRegistry
-
Constructor Summary
Constructors Modifier Constructor Description protectedProbingAudioSourceManager(MediaContainerRegistry containerRegistry)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AudioTrackcreateTrack(AudioTrackInfo trackInfo, MediaContainerDescriptor containerTrackFactory)protected MediaContainerDescriptordecodeTrackFactory(java.io.DataInput input)protected voidencodeTrackFactory(MediaContainerDescriptor factory, java.io.DataOutput output)protected AudioItemhandleLoadResult(MediaContainerDetectionResult result)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sedmelluq.discord.lavaplayer.source.AudioSourceManager
decodeTrack, encodeTrack, getSourceName, isTrackEncodable, loadItem, shutdown
-
-
-
-
Field Detail
-
containerRegistry
protected final MediaContainerRegistry containerRegistry
-
-
Constructor Detail
-
ProbingAudioSourceManager
protected ProbingAudioSourceManager(MediaContainerRegistry containerRegistry)
-
-
Method Detail
-
handleLoadResult
protected AudioItem handleLoadResult(MediaContainerDetectionResult result)
-
createTrack
protected abstract AudioTrack createTrack(AudioTrackInfo trackInfo, MediaContainerDescriptor containerTrackFactory)
-
encodeTrackFactory
protected void encodeTrackFactory(MediaContainerDescriptor factory, java.io.DataOutput output) throws java.io.IOException
- Throws:
java.io.IOException
-
decodeTrackFactory
protected MediaContainerDescriptor decodeTrackFactory(java.io.DataInput input) throws java.io.IOException
- Throws:
java.io.IOException
-
-