@ProviderType
public interface VideoViewerUtil
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPreviewUrlForVideoAssetResource(Resource resource)
Constructs the preview url for the video asset
resource |
java.lang.String |
getS7FileHandleForVideoAssetResource(Resource resource)
Retrieves the value of
dam:scene7FileAvs property or dam:scene7File property of
the video asset sling resource . |
java.lang.String |
getS7ViewerPath(ResourceResolver resourceResolver)
Constructs the Scene7 viewers' parent node path from viewer presets config in the JCR Repository.
|
java.lang.String getPreviewUrlForVideoAssetResource(@Nonnull Resource resource)
resource
resource
- Video asset sling resourceresource
. Returns null if preview url can't be found.java.lang.String getS7FileHandleForVideoAssetResource(@Nonnull Resource resource)
dam:scene7FileAvs
property or dam:scene7File
property of
the video asset sling resource
.resource
- Video asset Sling resource. Should be adaptable to Asset
.The value of dam:scene7FileAvs
property from the video asset metadata.
If dam:scene7FileAvs
property is not found, returns the value of dam:scene7File
property.
Returns null if the resource
is not adaptable to Asset
.
java.lang.IllegalArgumentException
- If resource
is null.java.lang.String getS7ViewerPath(@Nonnull ResourceResolver resourceResolver) throws RepositoryException
resourceResolver
- ResourceResolver object for accessing the JCR repository.RepositoryException
- If the methods fails to read the repository.java.lang.IllegalArgumentException
- If resourceResolver
is null.Copyright © 2010 - 2020 Adobe. All Rights Reserved