soundcloud

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 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

View Source
var Images = []Image{
	{Size: "t120x120"},
	{Size: "t1240x260", Crop: true},
	{Size: "t200x200"},
	{Size: "t20x20"},
	{Size: "t240x240"},
	{Size: "t2480x520", Crop: true},
	{Size: "t250x250"},
	{Size: "t300x300"},
	{Size: "t40x40"},
	{Size: "t47x47"},
	{Size: "t500x"},
	{Size: "t500x500"},
	{Size: "t50x50"},
	{Size: "t60x60"},
	{Size: "t67x67"},
	{Size: "t80x80"},
	{Size: "tx250"},
}

Functions

This section is empty.

Types

type Image

type Image struct {
	Size string
	Crop bool
}

type Media

type Media struct {
	URL string // cf-media.sndcdn.com/QaV7QR1lxpc6.128.mp3
}

type Track

type Track struct {
	ID           int64
	Display_Date string // 2021-04-12T07:00:01Z
	User         struct {
		Username   string
		Avatar_URL string
	}
	Title       string
	Artwork_URL string
	Media       struct {
		Transcodings []struct {
			Format struct {
				Protocol string
			}
			URL string
		}
	}
}

func New_Track

func New_Track(id int) (*Track, error)

func Resolve

func Resolve(ref string) (*Track, error)

func (Track) Artwork

func (t Track) Artwork() string

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

func (Track) Progressive

func (t Track) Progressive() (*Media, error)

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

func (Track) String

func (t Track) String() string

func (Track) Time

func (t Track) Time() (time.Time, error)

Jump to

Keyboard shortcuts

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