Package com.day.cq.dam.video
Class VideoProfile
- java.lang.Object
-
- com.day.cq.dam.video.VideoProfile
-
public class VideoProfile extends java.lang.Object
Describes the transcoding of a video file. Utility wrapper around a video profile page/resource.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROFILE_BASE_PATH
static java.lang.String
PROFILE_TYPE_CQ
static java.lang.String
PROFILE_TYPE_S7
static java.lang.String
PROFILES_CACONFIG_BUCKET
static java.lang.String
PROFILES_LEGACY_BUCKET
-
Constructor Summary
Constructors Constructor Description VideoProfile(Resource resource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VideoProfile
get(ResourceResolver resolver, java.lang.String name)
Deprecated.since release 6.4.static VideoProfile
get(ResourceResolver resolver, ConfigurationResourceResolver configResolver, java.lang.String name)
Resolves a video profile by name from Sling Context-Aware ConfigurationNode
getContentNode()
Resource
getContentResource()
java.lang.String
getCustomVideoSource(Rendition rendition)
java.lang.String
getFlvVideoSource(Rendition rendition)
java.lang.String
getHtmlSource(Rendition rendition)
Get the value for the 'src' attribute for the html <source> element, based on the given rendition.java.lang.String
getHtmlType()
java.lang.String
getName()
java.awt.Dimension
getOutputSize()
java.lang.String
getPath()
ValueMap
getProperties()
Rendition
getRendition(Asset asset)
Resource
getResource()
java.lang.String
getStrobeVideoSource(Rendition rendition)
-
-
-
Field Detail
-
PROFILE_BASE_PATH
public static final java.lang.String PROFILE_BASE_PATH
- See Also:
- Constant Field Values
-
PROFILE_TYPE_CQ
public static final java.lang.String PROFILE_TYPE_CQ
- See Also:
- Constant Field Values
-
PROFILE_TYPE_S7
public static final java.lang.String PROFILE_TYPE_S7
- See Also:
- Constant Field Values
-
PROFILES_CACONFIG_BUCKET
public static final java.lang.String PROFILES_CACONFIG_BUCKET
- See Also:
- Constant Field Values
-
PROFILES_LEGACY_BUCKET
public static final java.lang.String PROFILES_LEGACY_BUCKET
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VideoProfile
public VideoProfile(Resource resource)
-
-
Method Detail
-
get
@Deprecated public static VideoProfile get(ResourceResolver resolver, java.lang.String name)
Deprecated.since release 6.4. With Video Transcoding profiles being resolved by Sling ContentAware Configuration Resolver, useget(ResourceResolver, ConfigurationResourceResolver, String)
instead Resolves a video profile by name (relative to the video profile base path) or absolute path.- Parameters:
resolver
- to resolve the provided profile-name/profile-pathname
- can be a name or an absolute path- Returns:
- a video profile wrapper
-
get
public static VideoProfile get(ResourceResolver resolver, ConfigurationResourceResolver configResolver, java.lang.String name)
Resolves a video profile by name from Sling Context-Aware Configuration- Parameters:
resolver
- to resolve the provided profile-nameconfigResolver
- to resolve provided profile-name using Sling Context-Aware Config Resolvername
- of the profile (under the Context-Aware config's "settings" bucket)- Returns:
- a video profile wrapper
-
getName
public java.lang.String getName()
-
getPath
public java.lang.String getPath()
-
getResource
public Resource getResource()
-
getContentResource
public Resource getContentResource()
-
getProperties
public ValueMap getProperties()
-
getContentNode
public Node getContentNode()
-
getHtmlType
public java.lang.String getHtmlType()
-
getOutputSize
public java.awt.Dimension getOutputSize()
-
getHtmlSource
public java.lang.String getHtmlSource(Rendition rendition)
Get the value for the 'src' attribute for the html <source> element, based on the given rendition.- Parameters:
rendition
- Rendition for which to get the src attribute- Returns:
- String with correct src attribute
-
getStrobeVideoSource
public java.lang.String getStrobeVideoSource(Rendition rendition)
-
getFlvVideoSource
public java.lang.String getFlvVideoSource(Rendition rendition)
-
getCustomVideoSource
public java.lang.String getCustomVideoSource(Rendition rendition)
-
-