Versions in this module Expand all Collapse all v0 v0.0.20 Aug 21, 2024 v0.0.19 Aug 21, 2024 Changes in this version + var ClientId = []byte + var ClientIdHex = hex.EncodeToString(ClientId) + var ErrMediaRestricted = errors.New("media is restricted") + var ErrNoSupportedFormats = errors.New("no supported formats") + var UriRegexp = regexp.MustCompile("^spotify:([a-z]+):([0-9a-zA-Z]{21,22})$") + func ContextTrackToProvidedTrack(typ SpotifyIdType, track *connectpb.ContextTrack, provider string) *connectpb.ProvidedTrack + func GetCpuFamily() spotifypb.CpuFamily + func GetOS() spotifypb.Os + func GetPlatform() spotifypb.Platform + func GetPlatformSpecificData() *clienttokenpb.PlatformSpecificData + func GidToBase62(id []byte) string + func SpotifyLikeClientVersion() string + func SystemInfoString() string + func UserAgent() string + func VersionNumberString() string + func VersionString() string + type AudioSource interface + PositionMs func() int64 + Read func([]float32) (int, error) + SetPositionMs func(int64) error + type Float32Reader interface + Read func([]float32) (n int, err error) + type GetAddressFunc func() string + type GetLogin5TokenFunc func(force bool) (string, error) + type Media struct + func NewMediaFromEpisode(episode *metadatapb.Episode) *Media + func NewMediaFromTrack(track *metadatapb.Track) *Media + func (te Media) Duration() int32 + func (te Media) Episode() *metadatapb.Episode + func (te Media) IsEpisode() bool + func (te Media) IsTrack() bool + func (te Media) Name() string + func (te Media) Restriction() []*metadatapb.Restriction + func (te Media) Track() *metadatapb.Track + type PageResolver interface + Page func(idx int) ([]T, error) + type SizedReadAtSeeker interface + Size func() int64 + type SpotifyId struct + func SpotifyIdFromGid(typ SpotifyIdType, id []byte) SpotifyId + func SpotifyIdFromUri(uri string) SpotifyId + func SpotifyIdFromUriSafe(uri string) (_ *SpotifyId, err error) + func (id SpotifyId) Base62() string + func (id SpotifyId) Hex() string + func (id SpotifyId) Id() []byte + func (id SpotifyId) String() string + func (id SpotifyId) Type() SpotifyIdType + func (id SpotifyId) Uri() string + type SpotifyIdType string + const SpotifyIdTypeEpisode + const SpotifyIdTypeTrack + func InferSpotifyIdTypeFromContextUri(uri string) SpotifyIdType