public static class Video.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Video.Builder() |
| Modifier and Type | Method and Description |
|---|---|
Video |
build() |
Video.Builder |
setDescription(java.lang.String description)
Set description of the video.
|
Video.Builder |
setName(java.lang.String name)
Set name of the video.
|
Video.Builder |
setPrivacy(Privacy privacy)
Set privacy settings of the video.
|
Video.Builder |
setVideo(java.io.File file)
Set video to be published.
The aspect ratio of the video must be between 9x16 and 16x9, and the video cannot exceed 1024MB or 20 minutes in length. |
Video.Builder |
setVideo(java.lang.String fileName,
byte[] bytes)
Set video to be published.
The aspect ratio of the video must be between 9x16 and 16x9, and the video cannot exceed 1024MB or 20 minutes in length. |
public Video.Builder setVideo(java.io.File file)
file - public Video.Builder setVideo(java.lang.String fileName, byte[] bytes)
bytes - public Video.Builder setDescription(java.lang.String description)
description - The description of the videopublic Video.Builder setName(java.lang.String name)
name - The name of the videopublic Video.Builder setPrivacy(Privacy privacy)
privacy - The privacy settings of the videoPrivacypublic Video build()