struct.go
3.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package aliyun
//创建视频上传凭证
/*CreateUploadVideo */
type CreateUploadVideoRequest struct {
FileName string `position:"Query" name:"fileName"`
}
type CreateUploadVideoResponse struct {
RequestId string `json:"requestId"`
VideoId string `json:"videoId"`
UploadAddress string `json:"uploadAddress"`
UploadAuth string `json:"uploadAuth"`
}
/*GetPlayInfo 获取播放信息*/
type GetPlayInfoRequest struct {
VideoId string `json:"videoId" xml:"VideoId"`
}
// GetPlayInfoResponse is the response struct for api GetPlayInfo
type GetPlayInfoResponse struct {
//*responses.BaseResponse
//RequestId string `json:"RequestId" xml:"RequestId"`
VideoBase VideoBase `json:"VideoBase" xml:"VideoBase"`
PlayInfoList PlayInfoListInGetPlayInfo `json:"PlayInfoList" xml:"PlayInfoList"`
}
/*获取视频播放凭证*/
type GetVideoPlayAuthRequest struct {
VideoId string `json:"videoId" xml:"VideoId"`
}
// VideoBase is a nested struct in vod response
type VideoBase struct {
OutputType string `json:"OutputType" xml:"OutputType"`
CoverURL string `json:"CoverURL" xml:"CoverURL"`
Duration string `json:"Duration" xml:"Duration"`
Status string `json:"Status" xml:"Status"`
Title string `json:"Title" xml:"Title"`
VideoId string `json:"VideoId" xml:"VideoId"`
MediaType string `json:"MediaType" xml:"MediaType"`
CreationTime string `json:"CreationTime" xml:"CreationTime"`
TranscodeMode string `json:"TranscodeMode" xml:"TranscodeMode"`
//ThumbnailList ThumbnailListInGetPlayInfo `json:"ThumbnailList" xml:"ThumbnailList"`
}
type PlayInfoListInGetPlayInfo struct {
PlayInfo []PlayInfo `json:"PlayInfo" xml:"PlayInfo"`
}
// PlayInfo is a nested struct in vod response
type PlayInfo struct {
JobId string `json:"JobId" xml:"JobId"`
Format string `json:"Format" xml:"Format"`
PreprocessStatus string `json:"PreprocessStatus" xml:"PreprocessStatus"`
EncryptType string `json:"EncryptType" xml:"EncryptType"`
Fps string `json:"Fps" xml:"Fps"`
ModificationTime string `json:"ModificationTime" xml:"ModificationTime"`
NarrowBandType string `json:"NarrowBandType" xml:"NarrowBandType"`
Bitrate string `json:"Bitrate" xml:"Bitrate"`
Encrypt int64 `json:"Encrypt" xml:"Encrypt"`
Rand string `json:"Rand" xml:"Rand"`
CreationTime string `json:"CreationTime" xml:"CreationTime"`
StreamType string `json:"StreamType" xml:"StreamType"`
Height int64 `json:"Height" xml:"Height"`
WatermarkId string `json:"WatermarkId" xml:"WatermarkId"`
Duration string `json:"Duration" xml:"Duration"`
Complexity string `json:"Complexity" xml:"Complexity"`
Width int64 `json:"Width" xml:"Width"`
Size int64 `json:"Size" xml:"Size"`
Status string `json:"Status" xml:"Status"`
Definition string `json:"Definition" xml:"Definition"`
Plaintext string `json:"Plaintext" xml:"Plaintext"`
PlayURL string `json:"PlayURL" xml:"PlayURL"`
Specification string `json:"Specification" xml:"Specification"`
}