Package org.filestack.transforms
Class AvTransform
java.lang.Object
org.filestack.transforms.Transform
org.filestack.transforms.AvTransform
Transform
subclass for audio and video transformations.-
Field Summary
Fields inherited from class org.filestack.transforms.Transform
cdnService, config, isExternal, source, tasks
-
Constructor Summary
ConstructorDescriptionAvTransform
(Config config, String handle, StorageOptions storeOps, AvTransformOptions avOps) Constructs new instance.AvTransform
(CdnService cdnService, Config config, String handle, StorageOptions storeOps, AvTransformOptions avOps) Constructs new instance. -
Method Summary
Methods inherited from class org.filestack.transforms.Transform
getContent, getContentAsync, getContentJson, getContentJsonAsync, url
-
Constructor Details
-
AvTransform
public AvTransform(Config config, String handle, @Nullable StorageOptions storeOps, @Nullable AvTransformOptions avOps) Constructs new instance. -
AvTransform
public AvTransform(CdnService cdnService, Config config, String handle, @Nullable StorageOptions storeOps, @Nullable AvTransformOptions avOps) Constructs new instance.
-
-
Method Details
-
getFileLink
Gets converted content as a newFileLink
. Starts processing on first call. Returns null if still processing. Poll this method or usegetFileLinkAsync()
. If you need other data, such as thumbnails, useTransform.getContentJson()
.- Returns:
- null if processing, new
FileLink
if complete - Throws:
HttpException
- on error response from backendIOException
- on network failure
-
getFileLinkAsync
Asynchronously gets converted content as a newFileLink
. Uses default 10 second polling. UsegetFileLinkAsync(int)
to adjust interval.- See Also:
-
getFileLinkAsync
Asynchronously gets converted content as a newFileLink
.- Parameters:
pollInterval
- how frequently to poll (in seconds)- See Also:
-