diff options
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/object/video.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/video.go | 70 |
1 files changed, 44 insertions, 26 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go index 5a7e9e8d..6c48224b 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/object/video.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/video.go @@ -12,6 +12,9 @@ type VideoVideo struct { // Date when the video has been added in Unixtime. AddingDate int `json:"adding_date"` + // Date when the video has been released in Unixtime. + ReleaseDate int `json:"release_date"` + // Information whether current user can add the video. CanAdd BaseBoolInt `json:"can_add"` @@ -27,12 +30,17 @@ type VideoVideo struct { // Information whether current user can like the video. CanLike BaseBoolInt `json:"can_like"` + // Information whether current user can download the video. + CanDownload BaseBoolInt `json:"can_download"` + // Information whether current user can repost this video. CanRepost BaseBoolInt `json:"can_repost"` CanSubscribe BaseBoolInt `json:"can_subscribe"` CanAttachLink BaseBoolInt `json:"can_attach_link"` IsFavorite BaseBoolInt `json:"is_favorite"` IsPrivate BaseBoolInt `json:"is_private"` + IsExplicit BaseBoolInt `json:"is_explicit"` + IsSubscribed BaseBoolInt `json:"is_subscribed"` Added BaseBoolInt `json:"added"` Repeat BaseBoolInt `json:"repeat"` // Information whether the video is repeated ContentRestricted int `json:"content_restricted"` @@ -43,6 +51,7 @@ type VideoVideo struct { Description string `json:"description"` // Video description Duration int `json:"duration"` // Video duration in seconds Files VideoVideoFiles `json:"files"` + Trailer VideoVideoFiles `json:"trailer,omitempty"` FirstFrame []VideoVideoImage `json:"first_frame"` Image []VideoVideoImage `json:"image"` Height int `json:"height"` // Video height @@ -56,22 +65,27 @@ type VideoVideo struct { Photo1280 string `json:"photo_1280"` // URL of the preview image with 1280 px in width // URL of the page with a player that can be used to play the video in the browser. - Player string `json:"player"` - Processing int `json:"processing"` // Returns if the video is processing - Title string `json:"title"` // Video title - Type string `json:"type"` - Views int `json:"views"` // Number of views - Width int `json:"width"` // Video width - Platform string `json:"platform"` - LocalViews int `json:"local_views"` - Likes BaseLikesInfo `json:"likes"` // Count of likes - Reposts BaseRepostsInfo `json:"reposts"` // Count of views - TrackCode string `json:"track_code"` - PrivacyView Privacy `json:"privacy_view"` - PrivacyComment Privacy `json:"privacy_comment"` - ActionButton VideoActionButton `json:"action_button"` - Restriction VideoRestriction `json:"restriction"` - ContentRestrictedMessage string `json:"content_restricted_message"` + Player string `json:"player"` + Processing int `json:"processing"` // Returns if the video is processing + Title string `json:"title"` // Video title + Subtitle string `json:"subtitle"` // Video subtitle + Type string `json:"type"` + Views int `json:"views"` // Number of views + Width int `json:"width"` // Video width + Platform string `json:"platform"` + LocalViews int `json:"local_views"` + Likes BaseLikesInfo `json:"likes"` // Count of likes + Reposts BaseRepostsInfo `json:"reposts"` // Count of views + TrackCode string `json:"track_code"` + PrivacyView Privacy `json:"privacy_view"` + PrivacyComment Privacy `json:"privacy_comment"` + ActionButton VideoActionButton `json:"action_button"` + Restriction VideoRestriction `json:"restriction"` + ContentRestrictedMessage string `json:"content_restricted_message"` + MainArtists []AudioAudioArtist `json:"main_artists"` + FeaturedArtists []AudioAudioArtist `json:"featured_artists"` + Genres []BaseObjectWithName `json:"genres"` + OvID string `json:"ov_id,omitempty"` } // ToAttachment return attachment format. @@ -112,16 +126,20 @@ type VideoSnippet struct { // VideoVideoFiles struct. type VideoVideoFiles struct { - External string `json:"external"` // URL of the external player - Mp4_1080 string `json:"mp4_1080"` // URL of the mpeg4 file with 1080p quality - Mp4_1440 string `json:"mp4_1440"` // URL of the mpeg4 file with 2k quality - Mp4_2160 string `json:"mp4_2160"` // URL of the mpeg4 file with 4k quality - Mp4_240 string `json:"mp4_240"` // URL of the mpeg4 file with 240p quality - Mp4_360 string `json:"mp4_360"` // URL of the mpeg4 file with 360p quality - Mp4_480 string `json:"mp4_480"` // URL of the mpeg4 file with 480p quality - Mp4_720 string `json:"mp4_720"` // URL of the mpeg4 file with 720p quality - Live string `json:"live"` - HLS string `json:"hls"` + External string `json:"external,omitempty"` // URL of the external player + Mp4_1080 string `json:"mp4_1080,omitempty"` // URL of the mpeg4 file with 1080p quality + Mp4_1440 string `json:"mp4_1440,omitempty"` // URL of the mpeg4 file with 2k quality + Mp4_2160 string `json:"mp4_2160,omitempty"` // URL of the mpeg4 file with 4k quality + Mp4_240 string `json:"mp4_240,omitempty"` // URL of the mpeg4 file with 240p quality + Mp4_360 string `json:"mp4_360,omitempty"` // URL of the mpeg4 file with 360p quality + Mp4_480 string `json:"mp4_480,omitempty"` // URL of the mpeg4 file with 480p quality + Mp4_720 string `json:"mp4_720,omitempty"` // URL of the mpeg4 file with 720p quality + Live string `json:"live,omitempty"` + HLS string `json:"hls,omitempty"` + DashUni string `json:"dash_uni,omitempty"` + DashSep string `json:"dash_sep,omitempty"` + DashWebm string `json:"dash_webm,omitempty"` + FailoverHost string `json:"failover_host,omitempty"` } // VideoCatBlock struct. |