public class TranscoderProfileMapper extends org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>
AbstractAwsProfileMapper. It uses Apache Commons Configuration to read an XML
transcoder profile like the following:
<profile>
<id>xxxxx</id>
<credentials>
<accessKey>XXXXXXXXXXXXXXXXXXXX</accessKey>
<secretKey>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</secretKey>
</credentials>
<region>us-east-1</region>
<pipelineId>00000000000000000000</pipelineId>
<outputs>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-small.mp4</outputKeySuffix>
</output>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-medium.mp4</outputKeySuffix>
</output>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-large.mp4</outputKeySuffix>
</output>
</outputs>
</profile>
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Constructor and Description |
|---|
TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile |
createProfile() |
protected TranscoderProfile |
mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) |
public static final String SERVICE_NAME
public TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
protected TranscoderProfile mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) throws org.craftercms.commons.config.ConfigurationException
mapProfile in class org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>org.craftercms.commons.config.ConfigurationExceptionprotected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile createProfile()
createProfile in class org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>Copyright © 2020 CrafterCMS. All rights reserved.