public class VideoProfile
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
VideoProfile(Resource resource) |
Modifier and Type | Method and Description |
---|---|
static VideoProfile |
get(ResourceResolver resolver,
ConfigurationResourceResolver configResolver,
java.lang.String name)
Resolves a video profile by name from Sling Context-Aware Configuration
|
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,
use
get(ResourceResolver, ConfigurationResourceResolver, String) instead
Resolves a video profile by name (relative to the video profile base
path) or absolute path. |
Node |
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) |
public static final java.lang.String PROFILE_BASE_PATH
public static final java.lang.String PROFILE_TYPE_CQ
public static final java.lang.String PROFILE_TYPE_S7
public static final java.lang.String PROFILES_CACONFIG_BUCKET
public static final java.lang.String PROFILES_LEGACY_BUCKET
public VideoProfile(Resource resource)
@Deprecated public static VideoProfile get(ResourceResolver resolver, java.lang.String name)
get(ResourceResolver, ConfigurationResourceResolver, String)
instead
Resolves a video profile by name (relative to the video profile base
path) or absolute path.resolver
- to resolve the provided profile-name/profile-pathname
- can be a name or an absolute pathpublic static VideoProfile get(ResourceResolver resolver, ConfigurationResourceResolver configResolver, java.lang.String name)
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)public java.lang.String getName()
public java.lang.String getPath()
public Resource getResource()
public Resource getContentResource()
public ValueMap getProperties()
public Node getContentNode()
public java.lang.String getHtmlType()
public java.awt.Dimension getOutputSize()
public java.lang.String getHtmlSource(Rendition rendition)
public java.lang.String getStrobeVideoSource(Rendition rendition)
public java.lang.String getFlvVideoSource(Rendition rendition)
public java.lang.String getCustomVideoSource(Rendition rendition)
Copyright © 2010 - 2020 Adobe. All Rights Reserved