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;
}
Aggregations