Class ElasticTranscoderServiceImpl
java.lang.Object
org.craftercms.studio.api.v1.service.aws.AbstractAwsService<TranscoderProfile>
org.craftercms.studio.impl.v1.service.aws.ElasticTranscoderServiceImpl
- All Implemented Interfaces:
ElasticTranscoderService
public class ElasticTranscoderServiceImpl
extends AbstractAwsService<TranscoderProfile>
implements ElasticTranscoderService
Default implementation of
ElasticTranscoderService
.- Author:
- avasquez
-
Field Summary
Fields inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
profileLoader
-
Constructor Summary
ConstructorsConstructorDescriptionElasticTranscoderServiceImpl
(SiteAwareConfigProfileLoader<TranscoderProfile> profileLoader, ElasticTranscoder transcoder) -
Method Summary
Modifier and TypeMethodDescription@Valid TranscoderJob
transcodeFile
(String site, String profileId, String filename, InputStream content) Requests the transcoding of the specified file to the AWS Elastic Transcoder, using the specifiedTranscoderProfile
.Methods inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
getProfile
-
Constructor Details
-
ElasticTranscoderServiceImpl
public ElasticTranscoderServiceImpl(SiteAwareConfigProfileLoader<TranscoderProfile> profileLoader, ElasticTranscoder transcoder)
-
-
Method Details
-
transcodeFile
@Valid public @Valid TranscoderJob transcodeFile(String site, String profileId, String filename, InputStream content) throws AwsException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException Description copied from interface:ElasticTranscoderService
Requests the transcoding of the specified file to the AWS Elastic Transcoder, using the specifiedTranscoderProfile
.- Specified by:
transcodeFile
in interfaceElasticTranscoderService
- Parameters:
site
- the siteprofileId
- the id of theTranscoderProfile
to usefilename
- the name of the video file to transcodecontent
- the video file itself- Returns:
- the
TranscoderJob
that was started - Throws:
AwsException
- if an error occursorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
-