aliyun

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PlayAuthSign1 = []int{52, 58, 53, 121, 116, 102}
	PlayAuthSign2 = []int{90, 91}
)

Functions

func GetPlayInfoRequestUrl added in v1.0.10

func GetPlayInfoRequestUrl(rand, playAuth string, opts ...OptionFunc) (string, error)

GetPlayInfoRequestUrl 获取阿里云视频信息

func GetVodPlayerInfo

func GetVodPlayerInfo(rand, playAuth string, opts ...OptionFunc) (*simplejson.Json, error)

Types

type Option added in v1.0.10

type Option struct {
	// contains filtered or unexported fields
}

type OptionFunc added in v1.0.10

type OptionFunc func(opt *Option)

func WithFormats added in v1.0.10

func WithFormats(formats string) OptionFunc

func WithRegion added in v1.0.10

func WithRegion(region string) OptionFunc

func WithStreamType added in v1.0.10

func WithStreamType(streamType string) OptionFunc

func WithVideoId added in v1.0.11

func WithVideoId(videoId string) OptionFunc

Jump to

Keyboard shortcuts

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