clientident

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package clientident defines the built-in browser identity used by WaxTap's WEB-family YouTube clients. It centralizes values that need occasional updates: the emulated Chrome major and the InnerTube client versions.

Index

Constants

View Source
const (
	// WebVersion is the built-in InnerTube version for the WEB client. It was
	// last verified against youtube.com configuration in June 2026.
	WebVersion = "2.20260603.05.00"
	// WebEmbeddedVersion is the built-in InnerTube version for the
	// WEB_EMBEDDED_PLAYER client. It is a known-working version from yt-dlp but
	// has not been verified against a live embed session.
	WebEmbeddedVersion = "1.20260115.01.00"
)
View Source
const DefaultChromeMajor = 149

DefaultChromeMajor is the Chrome major used by the built-in WEB-family profiles. Keep it reasonably current; it does not need to track every release. Current stable versions are published at versionhistory.googleapis.com/v1/chrome/platforms/win/channels/stable/versions. Last updated in June 2026.

Variables

This section is empty.

Functions

func UserAgent

func UserAgent(major int) string

UserAgent returns a reduced desktop Chrome User-Agent. Zero and invalid values use DefaultChromeMajor. The top-level waxtap.New function rejects invalid values; lower-level packages use this fallback because their constructors do not return errors.

func ValidChromeMajor

func ValidChromeMajor(major int) bool

ValidChromeMajor reports whether major is zero or between 1 and 999. Zero selects DefaultChromeMajor.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL