Package dev.lavalink.youtube.sabr
Class SabrClientInfo
java.lang.Object
dev.lavalink.youtube.sabr.SabrClientInfo
The client identity sent within a SABR request's streamer context. The
clientName
is the numeric InnerTube client name (e.g. 1 for WEB, 2 for MWEB,
56 for WEB_EMBEDDED_PLAYER).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSabrClientInfo(int clientName, @NotNull String clientVersion, @Nullable String osName, @Nullable String osVersion) -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable SabrClientInfoBuilds SABR client info for a given InnerTube client name and version.voidwriteTo(@NotNull ProtoWriter writer, int field)
-
Field Details
-
clientName
public final int clientName -
clientVersion
-
osName
-
osVersion
-
-
Constructor Details
-
SabrClientInfo
-
-
Method Details
-
forClient
@Nullable public static @Nullable SabrClientInfo forClient(@Nullable @Nullable String innerTubeName, @Nullable @Nullable String clientVersion) Builds SABR client info for a given InnerTube client name and version.- Parameters:
innerTubeName- The InnerTube client name string (e.g. "WEB", "TVHTML5").clientVersion- The client version.- Returns:
- The client info, or
nullif the client name is unknown or the version is missing.
-
writeTo
-