Class FormatId

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

public class FormatId extends Object
Identifies a media format within a SABR stream. Corresponds to misc.FormatId.
  • Field Details

    • itag

      public final int itag
    • lastModified

      public final long lastModified
    • xtags

      public final String xtags
  • Constructor Details

    • FormatId

      public FormatId(int itag, long lastModified, @Nullable @Nullable String xtags)
  • Method Details

    • key

      @NotNull public @NotNull String key()
      Returns:
      A key uniquely identifying this format, mirroring googlevideo's createKey.
    • key

      @NotNull public static @NotNull String key(int itag, @Nullable @Nullable String xtags)
    • writeTo

      public void writeTo(@NotNull @NotNull ProtoWriter writer, int field)
    • parse

      @NotNull public static @NotNull FormatId parse(@NotNull @NotNull ProtoReader reader)