Interface AwsMediaConvertService

  • All Known Implementing Classes:
    AwsMediaConvertServiceImpl

    public interface AwsMediaConvertService
    Service that provides access to AWS MediaConvert.
    Since:
    3.1.1
    Author:
    joseross
    • Method Detail

      • 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 site
        inputProfileId - id of the profile for uploads
        outputProfileId - id of the s3 profile for downloads
        filename - name of the file
        content - content of the file
        Returns:
        the result of the transcoding job
        Throws:
        AwsException - if the upload or transcoding job creation fails
        org.craftercms.commons.config.profiles.ConfigurationProfileNotFoundException - if the profile is not found
        SiteNotFoundException - if the site is not found