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 Details

  • Constructor Details

    • AwsMediaConvertController

      public AwsMediaConvertController()
  • Method Details

    • uploadVideo

      @PostMapping("/upload") public ResultOne<MediaConvertResult> uploadVideo(jakarta.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 file
      AwsException - if there is any error uploading the file or triggering the job
      InvalidParametersException - if there is any error parsing the request
      SiteNotFoundException - if the site is not found
      org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found
      org.craftercms.commons.validation.ValidationException