Class OggTrackLoader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.ogg.OggTrackLoader
-
public class OggTrackLoader extends java.lang.ObjectTrack loader for an OGG packet stream. Automatically detects the track codec and loads the specific track handler.
-
-
Constructor Summary
Constructors Constructor Description OggTrackLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OggMetadataloadMetadata(OggPacketInputStream packetInputStream)static OggTrackBlueprintloadTrackBlueprint(OggPacketInputStream packetInputStream)
-
-
-
Method Detail
-
loadTrackBlueprint
public static OggTrackBlueprint loadTrackBlueprint(OggPacketInputStream packetInputStream) throws java.io.IOException
- Parameters:
packetInputStream- OGG packet input stream- Returns:
- The track handler detected from this packet input stream. Returns null if the stream ended.
- Throws:
java.io.IOException- On read errorjava.lang.IllegalStateException- If the track uses an unknown codec.
-
loadMetadata
public static OggMetadata loadMetadata(OggPacketInputStream packetInputStream) throws java.io.IOException
- Throws:
java.io.IOException
-
-