vimeo

package
v1.44.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 struct {
		Duration Duration
		Owner    struct {
			Name string
		}
		Title string
	}
}

func NewConfig

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

func (Config) DASH added in v1.42.8

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

func (Config) Videos added in v1.42.8

func (c Config) Videos() ([]Video, 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.

type Duration added in v1.38.0

type Duration int64

func (Duration) String added in v1.38.0

func (d Duration) String() string

type Embed added in v1.42.8

type Embed struct {
	Title         string
	Upload_Date   string
	Thumbnail_URL string
}

func NewEmbed added in v1.42.8

func NewEmbed(id uint64) (*Embed, error)

type Video

type Video struct {
	ID           string
	Width        int
	Height       int
	Init_Segment string
	Base_URL     string
}

func (Video) URL added in v1.42.8

func (v Video) URL() string

Jump to

Keyboard shortcuts

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