bytedance

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlayInfo

type PlayInfo struct {
	ResponseMetadata struct {
		RequestID string `json:"RequestId"`
		Action    string `json:"Action"`
		Version   string `json:"Version"`
		Service   string `json:"Service"`
		Region    string `json:"Region"`
	} `json:"ResponseMetadata"`
	Result struct {
		EncryptKey string `json:"EncryptKey"`
		CipherText string `json:"CipherText"`
		Data       struct {
			Status         int     `json:"Status"`
			VideoID        string  `json:"VideoID"`
			CoverURL       string  `json:"CoverUrl"`
			Duration       float64 `json:"Duration"`
			MediaType      string  `json:"MediaType"`
			EnableAdaptive bool    `json:"EnableAdaptive"`
			PlayInfoList   []struct {
				Bitrate          int     `json:"Bitrate"`
				FileHash         string  `json:"FileHash"`
				Size             int     `json:"Size"`
				Height           int     `json:"Height"`
				Width            int     `json:"Width"`
				Format           string  `json:"Format"`
				Codec            string  `json:"Codec"`
				Logo             string  `json:"Logo"`
				Definition       string  `json:"Definition"`
				Quality          string  `json:"Quality"`
				Duration         float64 `json:"Duration"`
				EncryptionMethod string  `json:"EncryptionMethod"`
				PlayAuth         string  `json:"PlayAuth"`
				PlayAuthID       string  `json:"PlayAuthID"`
				MainPlayURL      string  `json:"MainPlayUrl"`
				BackupPlayURL    string  `json:"BackupPlayUrl"`
				URLExpire        int     `json:"UrlExpire"`
				FileID           string  `json:"FileID"`
				P2PVerifyURL     string  `json:"P2pVerifyURL"`
				PreloadInterval  int     `json:"PreloadInterval"`
				PreloadMaxStep   int     `json:"PreloadMaxStep"`
				PreloadMinStep   int     `json:"PreloadMinStep"`
				PreloadSize      int     `json:"PreloadSize"`
				MediaType        string  `json:"MediaType"`
				CheckInfo        string  `json:"CheckInfo"`
			} `json:"PlayInfoList"`
			TotalCount int `json:"TotalCount"`
		} `json:"Data"`
	} `json:"Result"`
}

func GetPlayInfo

func GetPlayInfo(playAuthToken string) (playInfo PlayInfo, err error)

Jump to

Keyboard shortcuts

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