You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.8 KiB
66 lines
2.8 KiB
package model
|
|
|
|
type MyPutRet struct {
|
|
Fsize uint64 `json:"fsize"`
|
|
Height int `json:"height"`
|
|
Width int `json:"width"`
|
|
// Hash string `json:"hash"`
|
|
PersistentID string `json:"persistentId"`
|
|
Duration string `json:"duration"`
|
|
ReturnPrefix string `json:"returnPrefix"`
|
|
// Key string `json:"key"`
|
|
}
|
|
|
|
type HwVideoConverBack struct {
|
|
Type string `json:"type"` //消息类型 SubscriptionConfirmation-确认订阅
|
|
SubscribeUrl string `json:"subscribe_url"` //订阅确认需要访问的URL
|
|
Message string `json:"message"` //通知消息
|
|
EventType string `json:"event_type"` //transcodeComplete-转码完成 createComplete-创建媒资成功
|
|
TranscodeInfo HwTranscodeInfo `json:"transcode_info"` //transcodeComplete
|
|
CreateInfo HwCreateInfo `json:"create_info"` //createComplete
|
|
}
|
|
|
|
type HwTranscodeInfo struct {
|
|
AssetID string `json:"asset_id"` //媒资ID
|
|
Status string `json:"status"` //事件状态 SUCCEED:转码成功 FAILED:转码失败
|
|
TemplateGroupName string `json:"templateGroupName"` //转码模板组名称
|
|
OutPut []HwOutPut `json:"output"` //转码输出数组 状态为成功时才有此值。
|
|
}
|
|
|
|
type HwOutPut struct {
|
|
PlayType string `json:"play_type"` //协议类型 取值hls、 dash、mp4
|
|
Url string `json:"url"` //访问URL
|
|
Encrypted int `json:"encrypted"` //标记流是否已被加密 0:未加密 1:已被加密
|
|
Quality string `json:"quality"` //清晰度 FLUENT:流畅 SD:标清 HD:高清 FULL_HD:超清
|
|
MetaData HwMetaData `json:"meta_data"`
|
|
}
|
|
|
|
type HwMetaData struct {
|
|
PlayType int `json:"play_type"` //封装类型,TS/MP4等
|
|
Codec string `json:"codec"` //H_264
|
|
Duration int `json:"duration"` //视频时长(单位:秒)
|
|
VideoSize int `json:"videoSize"` //视频大小(单位:字节)
|
|
Width int `json:"width"` //视频宽度(单位:像素)
|
|
Hight int `json:"hight"` //视频高度(单位:像素)
|
|
BitRate int `json:"bitRate"` //视频平均码率
|
|
FrameRate int `json:"frameRate"` //帧率(单位: 帧每秒)
|
|
Quality string `json:"quality"` //清晰度
|
|
}
|
|
|
|
type HwCreateInfo struct {
|
|
Status string `json:"status"`
|
|
Title string `json:"title"`
|
|
Url string `json:"url"`
|
|
AssetID string `json:"asset_id"` //媒资ID
|
|
UserName string `json:"user_name"`
|
|
MetaData HwMetaData `json:"meta_data"`
|
|
}
|
|
|
|
type AsseptDetail struct {
|
|
AssetID string `json:"asset_id"` //媒资ID
|
|
BaseInfo AsseptDetailBaseInfo `json:"base_info"` //基本信息
|
|
}
|
|
|
|
type AsseptDetailBaseInfo struct {
|
|
Title string `json:"title"`
|
|
}
|
|
|