vimeo

package
v1.45.7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: OSL-3.0 Imports: 7 Imported by: 2

README

Vimeo

We start with this:

https://player.vimeo.com/video/660408476/config

Then we get this key:

Request.Files.DASH.CDNs.Fastly_Skyfire.URL

Which returns this:

https://skyfire.vimeocdn.com/
1642617968-0x7a08308e0140eef7e86b97d3e477c08de7af3769/
64a97917-f2a3-46b6-a4cc-3e55e3dd07a8/sep/
video/f18dad7b,fb8654f4,e4c45277,25c3eb1e,e34a69bd,9861e040,450eb343/
audio/e9081717,30021b64/
master.json

We can call the first URL Config. We can call the second URL Master.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

func Parse added in v1.40.8

func Parse(id string) (uint64, error)

Types

type Config

type Config struct {
	Request struct {
		Files struct {
			DASH struct {
				CDNs struct {
					Fastly_Skyfire struct {
						URL string
					}
				}
			}
			Progressive []struct {
				Width  int
				Height int
				URL    string
			}
		}
		Timestamp int64 // this is just the current time
	}
	Video ConfigVideo
}

func NewConfig

func NewConfig(id uint64) (*Config, error)

func (Config) Master added in v1.45.4

func (c Config) Master() (*Master, error)

These are segmented, but you can actually get the full videos like this: skyfire.vimeocdn.com/1640649881-0xc62066ffa3260c57af3d58b6b788399c3f8a52ef/ 64a97917-f2a3-46b6-a4cc-3e55e3dd07a8/parcel/video/fb8654f4.mp4 Its only advertised for 426x240, but it seems to work with all of them. Careful, URLs like above are timestamped, so they only work for a short time. Also, even though it says Video, audio is included too.

func (Config) URL added in v1.45.4

func (c Config) URL() (string, error)

type ConfigVideo added in v1.45.4

type ConfigVideo struct {
	Owner struct {
		Name string
	}
	Title    string
	Duration int64
}

func (ConfigVideo) String added in v1.45.4

func (c ConfigVideo) String() string

func (ConfigVideo) Time added in v1.45.4

func (c ConfigVideo) Time() time.Duration

type Master added in v1.45.4

type Master struct {
	Video []MasterVideo
}

type MasterVideo added in v1.45.4

type MasterVideo struct {
	Base_URL  string
	Height    int
	ID        string
	Mime_Type string
	Width     int
}

func (MasterVideo) URL added in v1.45.4

func (m MasterVideo) URL(con *Config) (string, error)

type Oembed added in v1.45.4

type Oembed struct {
	Title         string
	Upload_Date   string
	Thumbnail_URL string
}

func NewOembed added in v1.45.4

func NewOembed(id uint64) (*Oembed, error)

Jump to

Keyboard shortcuts

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