play.go 921 B

12345678910111213141516171819202122232425262728
  1. package v1
  2. // VideoPlay playinfo
  3. type VideoPlay struct {
  4. SVID int64 `json:"svid"`
  5. ExpireTime int64 `json:"expire_time"` //过期时间
  6. FileInfo []*FileInfo `json:"file_info"` //分片信息
  7. Quality int64 `json:"quality"` //清晰度
  8. SupportQuality []int64 `json:"support_quality"` //支持清晰度
  9. URL string `json:"url"` //基础url
  10. CurrentTime int64 `json:"current_time"` //当前时间戳
  11. }
  12. // FileInfo bvc fileinfo
  13. type FileInfo struct {
  14. Ahead string `json:"ahead"`
  15. FileSize int64 `json:"filesize"`
  16. TimeLength int64 `json:"timelength"`
  17. Vhead string `json:"vhead"`
  18. Path string `json:"path"`
  19. URL string `json:"url"`
  20. URLBc string `json:"url_bc"`
  21. }
  22. //VideoPlayRequest ..
  23. type VideoPlayRequest struct {
  24. SIVD []int64 `json:"svid" form:"svid" validate:"required"`
  25. }