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
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the Video Thumbnail Graph API type.static classRepresents the Video Format Graph API type.static classstatic classstatic classRepresents the Video Status Graph API type.Nested classes/interfaces inherited from class com.restfb.types.FacebookType
FacebookType.Metadata -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAdBreak(Integer adBreak) booleanaddCaption(VideoCaption caption) booleanaddContentTag(String contentTag) booleanaddCustomLabel(String customLabel) booleanaddFormat(Video.VideoFormat videoFormat) booleanaddTag(NamedFacebookType tag) Time offsets of ad breaks in milliseconds.Back dated timeString that represents the back dated time granularityShows whether the video is eligible to be boosted or notThe 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.identifier of the post this video belongs toThe 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.booleanremoveAdBreak(Integer adBreak) booleanremoveCaption(VideoCaption caption) booleanremoveContentTag(String contentTag) booleanremoveCustomLabel(String customLabel) booleanremoveFormat(Video.VideoFormat videoFormat) booleanvoidsetBackdatedTime(Date backdatedTime) Back dated timevoidsetBackdatedTimeGranularity(String backdatedTimeGranularity) String that represents the back dated time granularityvoidsetBoostEligibilityInfo(VideoBoostEligibilityInfo boostEligibilityInfo) Shows whether the video is eligible to be boosted or notvoidsetComments(Comments comments) The comments for this video.voidsetContentCategory(String contentCategory) The content category of this video.voidsetCreatedTime(Date createdTime) The time the video was initially published.voidsetDescription(String description) The long-form HTML description of the video.voidsetEmbeddable(Boolean embeddable) Whether the video is embeddable.voidsetEmbedHtml(String embedHtml) HTML that may be used to embed the video on another website.voidIf this object has a place, the event associated with the place.voidsetFeedType(String feedType) Whether or not the video is highlighted in Video Channel.voidAn object containing the name and ID of the user who posted the video.voidAn icon URL which represents the video.voidsetIsCrosspostingEligible(Boolean isCrosspostingEligible) Specifies if the video is eligible for crossposting.voidsetIsCrosspostVideo(Boolean isCrosspostVideo) voidsetIsEpisode(Boolean isEpisode) Whether this video is episode or not.voidsetIsInstagramEligible(Boolean isInstagramEligible) Whether the video is eligible to be promoted on InstagramvoidsetIsReferenceOnly(Boolean isReferenceOnly) Whether the video is exclusively used for copyright monitoring.voidThe length of the video, in seconds.voidPeople who like this.voidsetLiveAudienceCount(Integer liveAudienceCount) Number of unique people who watched the video broadcast when it was live.voidsetLiveStatus(String liveStatus) The live status of the video.voidsetMessage(String message) Deprecated.FB seems to have removed this field.voidsetMusicVideoCopyright(MusicVideoCopyright musicVideoCopyright) The music video copyright of this video because of a missing object description in the graph reference, we use a Map herevoidsetPermalinkUrl(String permalinkUrl) URL to the permalink page of the videovoidsetPicture(String picture) A URL for the thumbnail picture of the video.voidLocation associated with the video, if any.voididentifier of the post this video belongs tovoidsetPostViews(Integer postViews) The public view count of the video post, not aggregated with any other crossposts of the video.voidsetPremiereLivingRoomStatus(String premiereLivingRoomStatus) The status of the Premiere Watch Party, if anyvoidsetPrivacy(Privacy privacy) Privacy setting for the video.voidsetPublished(Boolean published) Whether a post about this video is published.voidsetReactions(Reactions reactions) The reactions for this video.voidsetScheduledPublishTime(Date scheduledPublishTime) The time that the video is scheduled to be published.voidA URL to the raw, playable video file.voidsetStatus(Video.VideoStatus status) Object describing the status attributes of a video.voidsetThumbnails(Connection<Video.Thumbnail> thumbnails) voidThe video title or captionvoidsetUniversalVideoId(String universalVideoId) The publishers asset management code for this video.voidsetUpdatedTime(Date updatedTime) The last time the video or its caption were updated.voidsetVideoInsights(Connection<Insight> videoInsights) voidThe public view count of the video.Methods inherited from class com.restfb.types.NamedFacebookType
getName, setNameMethods inherited from class com.restfb.types.FacebookType
getId, getMetadata, getType, setId, setMetadata, setTypeMethods 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:
getMessagein 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:
getCommentsin 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. -
getPostId
identifier of the post this video belongs to -
setPostId
identifier of the post this video belongs to -
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
-
getBoostEligibilityInfo
Shows whether the video is eligible to be boosted or not -
setBoostEligibilityInfo
Shows whether the video is eligible to be boosted or not -
getCreatedTime
The time the video was initially published.- Specified by:
getCreatedTimein 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
-