public class VideoUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
VideoUtils.ProgressCallback |
| Modifier and Type | Field and Description |
|---|---|
static int |
defaultChunkUploadRetries |
static int |
defaultWaitForEncodingCheckInterval |
static int |
defaultWaitForEncodingCheckTries |
| Constructor and Description |
|---|
VideoUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getVideoStatus(String videoId,
APIContext context,
VideoUtils.ProgressCallback callback) |
static String |
uploadSmallVideoFile(AdAccount account,
File videoFile) |
static String |
uploadSmallVideoFile(AdAccount account,
File videoFile,
boolean waitForEncoding,
VideoUtils.ProgressCallback callback) |
static String |
uploadVideoFileInChunks(AdAccount account,
File videoFile) |
static String |
uploadVideoFileInChunks(AdAccount account,
File videoFile,
int maxRetry,
boolean waitForEncoding,
VideoUtils.ProgressCallback callback) |
static boolean |
waitForVideoEncoding(String videoId,
APIContext context,
int checkIntervalInSec,
int retries,
VideoUtils.ProgressCallback callback) |
static boolean |
waitForVideoEncoding(String videoId,
APIContext context,
VideoUtils.ProgressCallback callback) |
public static int defaultWaitForEncodingCheckInterval
public static int defaultWaitForEncodingCheckTries
public static int defaultChunkUploadRetries
public static String uploadSmallVideoFile(AdAccount account, File videoFile) throws APIException
APIExceptionpublic static String uploadSmallVideoFile(AdAccount account, File videoFile, boolean waitForEncoding, VideoUtils.ProgressCallback callback) throws APIException
APIExceptionpublic static String uploadVideoFileInChunks(AdAccount account, File videoFile) throws APIException, IOException
APIExceptionIOExceptionpublic static String uploadVideoFileInChunks(AdAccount account, File videoFile, int maxRetry, boolean waitForEncoding, VideoUtils.ProgressCallback callback) throws APIException, IOException
APIExceptionIOExceptionpublic static boolean waitForVideoEncoding(String videoId, APIContext context, VideoUtils.ProgressCallback callback) throws APIException
APIExceptionpublic static boolean waitForVideoEncoding(String videoId, APIContext context, int checkIntervalInSec, int retries, VideoUtils.ProgressCallback callback) throws APIException
APIExceptionpublic static String getVideoStatus(String videoId, APIContext context, VideoUtils.ProgressCallback callback) throws APIException
APIExceptionCopyright © 2020. All rights reserved.