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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetTranscoder(ElasticTranscoder transcoder) @Valid TranscoderJobtranscodeFile(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
-
Constructor Details
-
ElasticTranscoderServiceImpl
public ElasticTranscoderServiceImpl()
-
-
Method Details
-
setTranscoder
-
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:ElasticTranscoderServiceRequests the transcoding of the specified file to the AWS Elastic Transcoder, using the specifiedTranscoderProfile.- Specified by:
transcodeFilein interfaceElasticTranscoderService- Parameters:
site- the siteprofileId- the id of theTranscoderProfileto usefilename- the name of the video file to transcodecontent- the video file itself- Returns:
- the
TranscoderJobthat was started - Throws:
AwsException- if an error occursorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException
-