@RestController @RequestMapping(value="/api/2/aws/mediaconvert") public class AwsMediaConvertController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
INPUT_PROFILE_PARAM |
protected AwsMediaConvertService |
mediaConvertService |
static String |
OUTPUT_PROFILE_PARAM |
| Constructor and Description |
|---|
AwsMediaConvertController() |
| Modifier and Type | Method and Description |
|---|---|
ResultOne<MediaConvertResult> |
uploadVideo(javax.servlet.http.HttpServletRequest request)
Uploads a file to S3 and triggers a MediaConvert job
|
public static final String INPUT_PROFILE_PARAM
public static final String OUTPUT_PROFILE_PARAM
@Autowired protected AwsMediaConvertService mediaConvertService
@PostMapping(value="/upload") public ResultOne<MediaConvertResult> uploadVideo(javax.servlet.http.HttpServletRequest request) throws IOException, AwsException, InvalidParametersException
request - the requestIOException - 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 requestCopyright © 2020 CrafterCMS. All rights reserved.