video

package
v1.833.21 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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