vod

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func BuildVodGetPlayInfoURL

func BuildVodGetPlayInfoURL(playAuth, videoID, clientRand string) (string, error)

BuildVodGetPlayInfoURL ...

Types

type PlayInfo

type PlayInfo struct {
	Format           string `json:"Format" xml:"Format"`
	BitDepth         int    `json:"BitDepth" xml:"BitDepth"`
	NarrowBandType   string `json:"NarrowBandType" xml:"NarrowBandType"`
	Fps              string `json:"Fps" xml:"Fps"`
	Encrypt          int64  `json:"Encrypt" xml:"Encrypt"`
	Rand             string `json:"Rand" xml:"Rand"`
	StreamType       string `json:"StreamType" xml:"StreamType"`
	WatermarkID      string `json:"WatermarkId" xml:"WatermarkId"`
	Size             int64  `json:"Size" xml:"Size"`
	Definition       string `json:"Definition" xml:"Definition"`
	Plaintext        string `json:"Plaintext" xml:"Plaintext"`
	JobID            string `json:"JobId" xml:"JobId"`
	EncryptType      string `json:"EncryptType" xml:"EncryptType"`
	PreprocessStatus string `json:"PreprocessStatus" xml:"PreprocessStatus"`
	ModificationTime string `json:"ModificationTime" xml:"ModificationTime"`
	Bitrate          string `json:"Bitrate" xml:"Bitrate"`
	CreationTime     string `json:"CreationTime" xml:"CreationTime"`
	Height           int64  `json:"Height" xml:"Height"`
	Complexity       string `json:"Complexity" xml:"Complexity"`
	Duration         string `json:"Duration" xml:"Duration"`
	HDRType          string `json:"HDRType" xml:"HDRType"`
	Width            int64  `json:"Width" xml:"Width"`
	Status           string `json:"Status" xml:"Status"`
	Specification    string `json:"Specification" xml:"Specification"`
	PlayURL          string `json:"PlayURL" xml:"PlayURL"`
}

PlayInfo is a nested struct in vod response

type PlayInfoListInGetPlayInfo

type PlayInfoListInGetPlayInfo struct {
	PlayInfo []PlayInfo `json:"PlayInfo" xml:"PlayInfo"`
}

PlayInfoListInGetPlayInfo is a nested struct in vod response

type VideoBase

type VideoBase struct {
	CreationTime  string `json:"CreationTime" xml:"CreationTime"`
	Status        string `json:"Status" xml:"Status"`
	TranscodeMode string `json:"TranscodeMode" xml:"TranscodeMode"`
	OutputType    string `json:"OutputType" xml:"OutputType"`
	VideoID       string `json:"VideoId" xml:"VideoId"`
	CoverURL      string `json:"CoverURL" xml:"CoverURL"`
	Duration      string `json:"Duration" xml:"Duration"`
	Title         string `json:"Title" xml:"Title"`
	MediaType     string `json:"MediaType" xml:"MediaType"`
	DanMuURL      string `json:"DanMuURL" xml:"DanMuURL"`
}

VideoBase is a nested struct in vod response

Jump to

Keyboard shortcuts

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