Class AwsMediaConvertController
java.lang.Object
org.craftercms.studio.controller.rest.v2.aws.AwsMediaConvertController
@RestController
@RequestMapping("/api/2/aws/mediaconvert")
public class AwsMediaConvertController
extends Object
Rest controller for AWS MediaConvert
- Since:
- 3.1.1
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected AwsMediaConvertServicestatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionuploadVideo(javax.servlet.http.HttpServletRequest request) Uploads a file to S3 and triggers a MediaConvert job
-
Field Details
-
INPUT_PROFILE_PARAM
- See Also:
-
OUTPUT_PROFILE_PARAM
- See Also:
-
mediaConvertService
-
-
Constructor Details
-
AwsMediaConvertController
public AwsMediaConvertController()
-
-
Method Details
-
uploadVideo
@PostMapping("/upload") public ResultOne<MediaConvertResult> uploadVideo(javax.servlet.http.HttpServletRequest request) throws IOException, AwsException, InvalidParametersException, org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException, SiteNotFoundException, org.craftercms.commons.validation.ValidationException Uploads a file to S3 and triggers a MediaConvert job- Parameters:
request- the request- Returns:
- the result of triggering the job
- Throws:
IOException- if there is any error reading the content of the fileAwsException- if there is any error uploading the file or triggering the jobInvalidParametersException- if there is any error parsing the requestSiteNotFoundException- if the site is not foundorg.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException- if the profile is not foundorg.craftercms.commons.validation.ValidationException
-