Search in sources :

Example 1 with MediaContainerProbe

use of com.sedmelluq.discord.lavaplayer.container.MediaContainerProbe in project lavaplayer by sedmelluq.

the class ProbingAudioSourceManager method decodeTrackFactory.

protected MediaContainerDescriptor decodeTrackFactory(DataInput input) throws IOException {
    String probeInfo = input.readUTF();
    int separatorPosition = probeInfo.indexOf(PARAMETERS_SEPARATOR);
    String probeName = separatorPosition < 0 ? probeInfo : probeInfo.substring(0, separatorPosition);
    String parameters = separatorPosition < 0 ? null : probeInfo.substring(separatorPosition + 1);
    MediaContainerProbe probe = containerRegistry.find(probeName);
    if (probe != null) {
        return new MediaContainerDescriptor(probe, parameters);
    }
    return null;
}
Also used : MediaContainerProbe(com.sedmelluq.discord.lavaplayer.container.MediaContainerProbe) MediaContainerDescriptor(com.sedmelluq.discord.lavaplayer.container.MediaContainerDescriptor)

Aggregations

MediaContainerDescriptor (com.sedmelluq.discord.lavaplayer.container.MediaContainerDescriptor)1 MediaContainerProbe (com.sedmelluq.discord.lavaplayer.container.MediaContainerProbe)1