Interface AwsMediaConvertService
- All Known Implementing Classes:
AwsMediaConvertServiceImpl
public interface AwsMediaConvertService
Service that provides access to AWS MediaConvert.
- Since:
- 3.1.1
- Author:
- joseross
-
Method Summary
Modifier and TypeMethodDescriptionuploadVideo(String site, String inputProfileId, String outputProfileId, String filename, InputStream content) Uploads a file to S3 and creates a transcoding job using the specified profile.
-
Method Details
-
uploadVideo
MediaConvertResult uploadVideo(String site, String inputProfileId, String outputProfileId, String filename, InputStream content) throws AwsException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException, SiteNotFoundException Uploads a file to S3 and creates a transcoding job using the specified profile.- Parameters:
site- name of the siteinputProfileId- id of the profile for uploadsoutputProfileId- id of the s3 profile for downloadsfilename- name of the filecontent- content of the file- Returns:
- the result of the transcoding job
- Throws:
AwsException- if the upload or transcoding job creation failsorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException- if the profile is not foundSiteNotFoundException- if the site is not found
-