Class UmpReader

java.lang.Object
dev.lavalink.youtube.sabr.UmpReader

public class UmpReader extends Object
Parser for YouTube's UMP (Universal/Ultra Media Playback) container format, which wraps SABR streaming responses. A UMP payload is a sequence of parts, each encoded as [varint partType][varint partSize][partSize bytes of data].

Note: UMP uses its own variable-length integer encoding which differs from the LEB128 varint used by protocol buffers. The number of bytes is derived from the high bits of the first byte, and the value is little-endian.

  • Field Details

  • Constructor Details

    • UmpReader

      public UmpReader(@NotNull @org.jetbrains.annotations.NotNull byte[] data)
  • Method Details