Package com.day.cq.dam.video
Class VideoProfile
java.lang.Object
com.day.cq.dam.video.VideoProfile
Describes the transcoding of a video file. Utility wrapper around a video
profile page/resource.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoProfileget(ResourceResolver resolver, String name) Deprecated.since release 6.4.static VideoProfileget(ResourceResolver resolver, ConfigurationResourceResolver configResolver, String name) Resolves a video profile by name from Sling Context-Aware ConfigurationgetCustomVideoSource(Rendition rendition) getFlvVideoSource(Rendition rendition) getHtmlSource(Rendition rendition) Get the value for the 'src' attribute for the html <source> element, based on the given rendition.getName()getPath()getRendition(Asset asset) getStrobeVideoSource(Rendition rendition)
-
Field Details
-
PROFILE_BASE_PATH
- See Also:
-
PROFILE_TYPE_CQ
- See Also:
-
PROFILE_TYPE_S7
- See Also:
-
PROFILES_CACONFIG_BUCKET
- See Also:
-
PROFILES_LEGACY_BUCKET
- See Also:
-
-
Constructor Details
-
VideoProfile
-
-
Method Details
-
get
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, 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
-
getPath
-
getResource
-
getContentResource
-
getProperties
-
getContentNode
-
getHtmlType
-
getRendition
-
getOutputSize
-
getHtmlSource
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
-
getFlvVideoSource
-
getCustomVideoSource
-