soundcloud

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: OSL-3.0 Imports: 8 Imported by: 0

README

SoundCloud

Android client

https://play.google.com/store/apps/details?id=com.soundcloud.android

Must use Android API 24 or higher:

sdkVersion:'24'

which means API 23 will fail:

APK Installer
---------------------------
The APK failed to install.<br/> Error: INSTALL_FAILED_OLDER_SDK

So you must install system certificate.

Image

artworks:

https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/western_vinyl/jessica-risker-cut-my-hair
https://i1.sndcdn.com/artworks-000308141235-7ep8lo-t500x.jpg

avatars:

https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/pdis_inpartmaint/harold-budd-perhaps-moss
https://i1.sndcdn.com/avatars-000274827119-0dxutu-t500x.jpg

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientMedia

type ClientMedia struct {
	Url string // cf-media.sndcdn.com/QaV7QR1lxpc6.128.mp3
}

type ClientTrack

type ClientTrack struct {
	ArtworkUrl  string    `json:"artwork_url"`
	DisplayDate time.Time `json:"display_date"`
	Id          int64
	Media       struct {
		Transcodings []Transcoding
	}
	Title string
	User  struct {
		AvatarUrl string `json:"avatar_url"`
		Username  string
	}
}

func (*ClientTrack) Artwork

func (c *ClientTrack) Artwork() string

i1.sndcdn.com/artworks-000308141235-7ep8lo-large.jpg

func (*ClientTrack) New

func (c *ClientTrack) New(id int64) error

func (*ClientTrack) Progressive

func (c *ClientTrack) Progressive() (*Transcoding, bool)

Also available is "hls", but all transcodings are quality "sq". Same for "api-mobile.soundcloud.com".

func (*ClientTrack) Resolve

func (c *ClientTrack) Resolve(address string) error

type Transcoding

type Transcoding struct {
	Format struct {
		Protocol string
	}
	Url string
}

func (*Transcoding) Media

func (t *Transcoding) Media() (*ClientMedia, error)

Jump to

Keyboard shortcuts

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