Package com.restfb.types
Class Video
java.lang.Object
com.restfb.types.AbstractFacebookType
com.restfb.types.FacebookType
com.restfb.types.NamedFacebookType
com.restfb.types.Video
- All Implemented Interfaces:
HasComments
,HasCreatedTime
,HasMessage
,Serializable
Represents the Video Graph API type.
- Since:
- 1.5
- Author:
- Mark Allen
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the Video Thumbnail Graph API type.static class
Represents the Video Format Graph API type.static class
static class
static class
Represents the Video Status Graph API type.Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addAdBreak
(Integer adBreak) boolean
addCaption
(VideoCaption caption) boolean
addContentTag
(String contentTag) boolean
addCustomLabel
(String customLabel) boolean
addFormat
(Video.VideoFormat videoFormat) boolean
addTag
(NamedFacebookType tag) Time offsets of ad breaks in milliseconds.Back dated timeString that represents the back dated time granularityThe comments for this video.The number of comments of this video.The content category of this video.Tags that describe the contents of the video.The time the video was initially published.Labels used to describe the video.The long-form HTML description of the video.Whether the video is embeddable.HTML that may be used to embed the video on another website.getEvent()
If this object has a place, the event associated with the place.Whether or not the video is highlighted in Video Channel.The different formats of the video.getFrom()
An object containing the name and ID of the user who posted the video.getIcon()
An icon URL which represents the video.Specifies if the video is eligible for crossposting.Whether this video is episode or not.Whether the video is eligible to be promoted on InstagramWhether the video is exclusively used for copyright monitoring.The length of the video, in seconds.getLikes()
People who like this.The number of likes on this video.Number of unique people who watched the video broadcast when it was live.The live status of the video.Deprecated.FB seems to have removed this field.The music video copyright of this video because of a missing object description in the graph reference, we use a Map hereURL to the permalink page of the videoA URL for the thumbnail picture of the video.getPlace()
Location associated with the video, if any.The public view count of the video post, not aggregated with any other crossposts of the video.The status of the Premiere Watch Party, if anyPrivacy setting for the video.Whether a post about this video is published.The reactions for this video.The time that the video is scheduled to be published.A URL to the raw, playable video file.Object describing the status attributes of a video.getTags()
Tags for the video.getTitle()
The video title or captionThe publishers asset management code for this video.The last time the video or its caption were updated.getViews()
The public view count of the video.boolean
removeAdBreak
(Integer adBreak) boolean
removeCaption
(VideoCaption caption) boolean
removeContentTag
(String contentTag) boolean
removeCustomLabel
(String customLabel) boolean
removeFormat
(Video.VideoFormat videoFormat) boolean
void
setBackdatedTime
(Date backdatedTime) Back dated timevoid
setBackdatedTimeGranularity
(String backdatedTimeGranularity) String that represents the back dated time granularityvoid
setComments
(Comments comments) The comments for this video.void
setContentCategory
(String contentCategory) The content category of this video.void
setCreatedTime
(Date createdTime) The time the video was initially published.void
setDescription
(String description) The long-form HTML description of the video.void
setEmbeddable
(Boolean embeddable) Whether the video is embeddable.void
setEmbedHtml
(String embedHtml) HTML that may be used to embed the video on another website.void
If this object has a place, the event associated with the place.void
setFeedType
(String feedType) Whether or not the video is highlighted in Video Channel.void
An object containing the name and ID of the user who posted the video.void
An icon URL which represents the video.void
setIsCrosspostingEligible
(Boolean isCrosspostingEligible) Specifies if the video is eligible for crossposting.void
setIsCrosspostVideo
(Boolean isCrosspostVideo) void
setIsEpisode
(Boolean isEpisode) Whether this video is episode or not.void
setIsInstagramEligible
(Boolean isInstagramEligible) Whether the video is eligible to be promoted on Instagramvoid
setIsReferenceOnly
(Boolean isReferenceOnly) Whether the video is exclusively used for copyright monitoring.void
The length of the video, in seconds.void
People who like this.void
setLiveAudienceCount
(Integer liveAudienceCount) Number of unique people who watched the video broadcast when it was live.void
setLiveStatus
(String liveStatus) The live status of the video.void
setMessage
(String message) Deprecated.FB seems to have removed this field.void
setMusicVideoCopyright
(MusicVideoCopyright musicVideoCopyright) The music video copyright of this video because of a missing object description in the graph reference, we use a Map herevoid
setPermalinkUrl
(String permalinkUrl) URL to the permalink page of the videovoid
setPicture
(String picture) A URL for the thumbnail picture of the video.void
Location associated with the video, if any.void
setPostViews
(Integer postViews) The public view count of the video post, not aggregated with any other crossposts of the video.void
setPremiereLivingRoomStatus
(String premiereLivingRoomStatus) The status of the Premiere Watch Party, if anyvoid
setPrivacy
(Privacy privacy) Privacy setting for the video.void
setPublished
(Boolean published) Whether a post about this video is published.void
setReactions
(Reactions reactions) The reactions for this video.void
setScheduledPublishTime
(Date scheduledPublishTime) The time that the video is scheduled to be published.void
A URL to the raw, playable video file.void
setStatus
(Video.VideoStatus status) Object describing the status attributes of a video.void
setThumbnails
(Connection<Video.Thumbnail> thumbnails) void
The video title or captionvoid
setUniversalVideoId
(String universalVideoId) The publishers asset management code for this video.void
setUpdatedTime
(Date updatedTime) The last time the video or its caption were updated.void
setVideoInsights
(Connection<Insight> videoInsights) void
The public view count of the video.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setName
Methods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setType
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
Constructor Details
-
Video
public Video()
-
-
Method Details
-
getCaptions
-
addCaption
-
removeCaption
-
getFormat
The different formats of the video.- Returns:
- The different formats of the video.
-
addFormat
-
removeFormat
-
getTags
Tags for the video.- Returns:
- Tags for the video.
- Since:
- 1.6.5
-
addTag
-
removeTag
-
getContentTags
Tags that describe the contents of the video.- Returns:
- Tags that describe the contents of the video.
-
addContentTag
-
removeContentTag
-
getAdBreaks
Time offsets of ad breaks in milliseconds. Ad breaks are short ads that play within a video.- Returns:
- Time offsets of ad breaks in milliseconds. Ad breaks are short ads that play within a video.
-
addAdBreak
-
removeAdBreak
-
getCustomLabels
Labels used to describe the video. Unlike content tags, custom labels are not published and only appear in insights data.- Returns:
- Labels used to describe the video.
-
addCustomLabel
-
removeCustomLabel
-
getLikesCount
The number of likes on this video. you have to fetch the video id with?fields=likes.summary(true)
in order to speed up the likes count generation, you may use?fields=likes.limit(1).summary(true)
, so only 1 like is fetched, but the complete summary- Returns:
- The number of likes on this video.
-
getCommentsCount
The number of comments of this video. you have to fetch the video id with?fields=comments.summary(true)
in order to speed up the comments count generation, you may use?fields=comments.limit(1).summary(true)
, so only 1 comment is fetched, but the complete summary- Returns:
- The number of comments of this video.
-
getFrom
An object containing the name and ID of the user who posted the video.- Returns:
- An object containing the name and ID of the user who posted the video.
-
setFrom
An object containing the name and ID of the user who posted the video. -
getMessage
Deprecated.FB seems to have removed this field.The video title / caption.- Specified by:
getMessage
in interfaceHasMessage
- Returns:
- The video title / caption.
-
setMessage
Deprecated.FB seems to have removed this field.The video title / caption. -
getComments
The comments for this video.- Specified by:
getComments
in interfaceHasComments
- Returns:
- The comments for this video.
-
setComments
The comments for this video. -
getDescription
The long-form HTML description of the video.- Returns:
- The long-form HTML description of the video.
-
setDescription
The long-form HTML description of the video. -
getPermalinkUrl
URL to the permalink page of the video- Returns:
- URL to the permalink page of the video
-
setPermalinkUrl
URL to the permalink page of the video -
getTitle
The video title or caption- Returns:
- the video title or caption
-
setTitle
The video title or caption -
getIsCrosspostVideo
-
setIsCrosspostVideo
-
getIsCrosspostingEligible
Specifies if the video is eligible for crossposting.- Returns:
- Specifies if the video is eligible for crossposting
-
setIsCrosspostingEligible
Specifies if the video is eligible for crossposting. -
getIsEpisode
Whether this video is episode or not.- Returns:
- Whether this video is episode or not.
-
setIsEpisode
Whether this video is episode or not. -
getIsInstagramEligible
Whether the video is eligible to be promoted on Instagram- Returns:
- Whether the video is eligible to be promoted on Instagram
-
setIsInstagramEligible
Whether the video is eligible to be promoted on Instagram -
getIsReferenceOnly
Whether the video is exclusively used for copyright monitoring.- Returns:
- Whether the video is exclusively used for copyright monitoring
-
setIsReferenceOnly
Whether the video is exclusively used for copyright monitoring. -
getMusicVideoCopyright
The music video copyright of this video because of a missing object description in the graph reference, we use a Map here -
setMusicVideoCopyright
The music video copyright of this video because of a missing object description in the graph reference, we use a Map here -
getPostViews
The public view count of the video post, not aggregated with any other crossposts of the video. -
setPostViews
The public view count of the video post, not aggregated with any other crossposts of the video. -
getReactions
The reactions for this video.- Returns:
- The reactions for this video.
-
setReactions
The reactions for this video. -
getEmbeddable
Whether the video is embeddable.- Returns:
- Whether the video is embeddable.
-
setEmbeddable
Whether the video is embeddable. -
getEvent
If this object has a place, the event associated with the place.- Returns:
- the event associated with the place
-
setEvent
If this object has a place, the event associated with the place. -
getFeedType
Whether or not the video is highlighted in Video Channel.- Returns:
- Whether or not the video is highlighted in Video Channel.
-
setFeedType
Whether or not the video is highlighted in Video Channel. -
getUniversalVideoId
The publishers asset management code for this video. -
setUniversalVideoId
The publishers asset management code for this video. -
getViews
The public view count of the video. -
setViews
The public view count of the video. -
getLikes
People who like this. you need to add the field to the fields query parameter to get the likes list otherwise null is returned- Returns:
- People who like this
-
setLikes
People who like this. you need to add the field to the fields query parameter to get the likes list otherwise null is returned -
getPlace
Location associated with the video, if any.- Returns:
- Location associated with the video, if any.
-
setPlace
Location associated with the video, if any. -
getContentCategory
The content category of this video.- Returns:
- The content category of this video.
-
setContentCategory
The content category of this video. -
getPicture
A URL for the thumbnail picture of the video.- Returns:
- A URL for the thumbnail picture of the video.
-
setPicture
A URL for the thumbnail picture of the video. -
getIcon
An icon URL which represents the video.- Returns:
- An icon URL which represents the video.
-
setIcon
An icon URL which represents the video. -
getSource
A URL to the raw, playable video file.- Returns:
- A URL to the raw, playable video file.
- Since:
- 1.6.5
-
setSource
A URL to the raw, playable video file.- Since:
- 1.6.5
-
getEmbedHtml
HTML that may be used to embed the video on another website.- Returns:
- HTML that may be used to embed the video on another website.
-
setEmbedHtml
HTML that may be used to embed the video on another website. -
getLength
The length of the video, in seconds.- Returns:
- The length of the video, in seconds.
-
setLength
The length of the video, in seconds. -
getLiveAudienceCount
Number of unique people who watched the video broadcast when it was live.- Returns:
- Number of unique people who watched the video broadcast when it was live.
-
setLiveAudienceCount
Number of unique people who watched the video broadcast when it was live. -
getLiveStatus
The live status of the video. Possible values contain LIVE, LIVE_STOPPED, VOD- Returns:
- The live status of the video
-
setLiveStatus
The live status of the video. Possible values contain LIVE, LIVE_STOPPED, VOD -
getPrivacy
Privacy setting for the video.- Returns:
- Privacy setting for the video.
-
setPrivacy
Privacy setting for the video. -
getPremiereLivingRoomStatus
The status of the Premiere Watch Party, if any -
setPremiereLivingRoomStatus
The status of the Premiere Watch Party, if any -
getStatus
Object describing the status attributes of a video.- Returns:
- Object describing the status attributes of a video.
-
setStatus
Object describing the status attributes of a video. -
getPublished
Whether a post about this video is published. This field is only accessible in Graph API 2.3 or later.- Returns:
- whether a post about this video is published.
- Since:
- 1.10.0
-
setPublished
Whether a post about this video is published. This field is only accessible in Graph API 2.3 or later.- Since:
- 1.10.0
-
getBackdatedTime
Back dated time- Since:
- 1.10.0
-
setBackdatedTime
Back dated time- Since:
- 1.10.0
-
getBackdatedTimeGranularity
String that represents the back dated time granularity- Since:
- 1.10.0
-
setBackdatedTimeGranularity
String that represents the back dated time granularity- Since:
- 1.10.0
-
getCreatedTime
The time the video was initially published.- Specified by:
getCreatedTime
in interfaceHasCreatedTime
- Returns:
- The time the video was initially published.
-
setCreatedTime
The time the video was initially published. -
getUpdatedTime
The last time the video or its caption were updated.- Returns:
- The last time the video or its caption were updated.
-
setUpdatedTime
The last time the video or its caption were updated. -
getScheduledPublishTime
The time that the video is scheduled to be published. This field is only accessible in Graph API 2.3 or later.- Returns:
- The time that the video is scheduled to be published.
- Since:
- 1.10.0
-
setScheduledPublishTime
The time that the video is scheduled to be published. This field is only accessible in Graph API 2.3 or later.- Since:
- 1.10.0
-
getVideoInsights
-
setVideoInsights
-
getThumbnails
-
setThumbnails
-