use of com.sedmelluq.discord.lavaplayer.container.adts.AdtsAudioTrack in project lavaplayer by sedmelluq.
the class M3uStreamAudioTrack method process.
@Override
public void process(LocalAudioTrackExecutor localExecutor) throws Exception {
try (final HttpInterface httpInterface = getHttpInterface()) {
try (ChainedInputStream chainedInputStream = new ChainedInputStream(() -> segmentUrlProvider.getNextSegmentStream(httpInterface))) {
MpegTsElementaryInputStream elementaryInputStream = new MpegTsElementaryInputStream(chainedInputStream, ADTS_ELEMENTARY_STREAM);
PesPacketInputStream pesPacketInputStream = new PesPacketInputStream(elementaryInputStream);
processDelegate(new AdtsAudioTrack(trackInfo, pesPacketInputStream), localExecutor);
}
}
}
use of com.sedmelluq.discord.lavaplayer.container.adts.AdtsAudioTrack in project lavaplayer by sedmelluq.
the class MpegAdtsAudioTrack method process.
@Override
public void process(LocalAudioTrackExecutor executor) throws Exception {
MpegTsElementaryInputStream elementaryInputStream = new MpegTsElementaryInputStream(inputStream, ADTS_ELEMENTARY_STREAM);
PesPacketInputStream pesPacketInputStream = new PesPacketInputStream(elementaryInputStream);
processDelegate(new AdtsAudioTrack(trackInfo, pesPacketInputStream), executor);
}
use of com.sedmelluq.discord.lavaplayer.container.adts.AdtsAudioTrack in project lavaplayer by sedmelluq.
the class MpegTsM3uStreamAudioTrack method processJoinedStream.
@Override
protected void processJoinedStream(LocalAudioTrackExecutor localExecutor, InputStream stream) throws Exception {
MpegTsElementaryInputStream elementaryInputStream = new MpegTsElementaryInputStream(stream, ADTS_ELEMENTARY_STREAM);
PesPacketInputStream pesPacketInputStream = new PesPacketInputStream(elementaryInputStream);
processDelegate(new AdtsAudioTrack(trackInfo, pesPacketInputStream), localExecutor);
}
Aggregations