video

package
v1.777.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VodClient *vod20170321.Client

Functions

func GetVideoCoverUrl

func GetVideoCoverUrl(videoId string) string

func GetVideoFileUrl

func GetVideoFileUrl(videoId string) string

func GetVideoPlayAuth

func GetVideoPlayAuth(videoId string) (string, error)

func SetVodClient

func SetVodClient(region string, clientId string, clientSecret string) error

func UploadVideo

func UploadVideo(fileId string, filename string, fileBuffer *bytes.Buffer) (string, error)

Types

type UploadAddress

type UploadAddress struct {
	Endpoint string `json:"Endpoint"`
	Bucket   string `json:"Bucket"`
	FileName string `json:"FileName"`
}

type UploadAuth

type UploadAuth struct {
	SecurityToken   string    `json:"SecurityToken"`
	AccessKeyId     string    `json:"AccessKeyId"`
	ExpireUTCTime   time.Time `json:"ExpireUTCTime"`
	AccessKeySecret string    `json:"AccessKeySecret"`
	Expiration      string    `json:"Expiration"`
	Region          string    `json:"Region"`
}

Jump to

Keyboard shortcuts

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