Class MpegTsElementaryInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.sedmelluq.discord.lavaplayer.container.mpegts.MpegTsElementaryInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class MpegTsElementaryInputStream extends java.io.InputStreamInput stream which takes in a stream providing MPEG TS data and outputs a single track from it specified by the elementary data type.
-
-
Field Summary
Fields Modifier and Type Field Description static intADTS_ELEMENTARY_STREAM
-
Constructor Summary
Constructors Constructor Description MpegTsElementaryInputStream(java.io.InputStream inputStream, int elementaryDataType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioTrackInfoProvidergetLoadedMetadata()intread()intread(byte[] buffer, int offset, int length)
-
-
-
Field Detail
-
ADTS_ELEMENTARY_STREAM
public static final int ADTS_ELEMENTARY_STREAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLoadedMetadata
public AudioTrackInfoProvider getLoadedMetadata()
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] buffer, int offset, int length) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
-