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 ofElasticTranscoderService
.- Author:
- avasquez
-
-
Field Summary
-
Fields inherited from class org.craftercms.studio.api.v1.service.aws.AbstractAwsService
profileLoader
-
-
Constructor Summary
Constructors Constructor Description ElasticTranscoderServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setTranscoder(ElasticTranscoder transcoder)
@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, setProfileLoader
-
-
-
-
Method Detail
-
setTranscoder
public void setTranscoder(ElasticTranscoder transcoder)
-
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
-
-