Examples of CreateBatchOperation


Examples of com.microsoft.windowsazure.services.media.models.Task.CreateBatchOperation

                "/media/MPEG4-H264.mp4");
        blobWriter.createBlockBlob("MPEG4-H264.mp4", mpeg4H264InputStream);
        service.action(AssetFile.createFileInfos(originalAsset.getId()));

        String jobName = testJobPrefix + "createJobSuccess";
        CreateBatchOperation taskCreator = Task
                .create(MEDIA_ENCODER_MEDIA_PROCESSOR_ID,
                        "<taskBody>"
                                + "<inputAsset>JobInputAsset(0)</inputAsset>"
                                + "<outputAsset>JobOutputAsset(0)</outputAsset>"
                                + "</taskBody>")
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.models.Task.CreateBatchOperation

        String encryptionVersion = "1.0";
        // Use a trivial vector, 16 bytes of zeros, base-64 encoded.
        String initializationVector = new String(Base64.encode(new byte[16]),
                "UTF8");

        CreateBatchOperation taskCreator = Task
                .create(mediaProcessorId, taskBody)
                .setConfiguration(configuration).setName(name)
                .setPriority(jobPriority).setOptions(options)
                .setEncryptionKeyId(encryptionKeyId)
                .setEncryptionScheme(encryptionScheme)
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.models.Task.CreateBatchOperation

        TaskOption options = TaskOption.None;

        List<CreateBatchOperation> taskCreators = new ArrayList<CreateBatchOperation>();

        for (int i = 0; i < taskBodies.length; i++) {
            CreateBatchOperation taskCreator = Task
                    .create(mediaProcessorId, taskBodies[i])
                    .setConfiguration(configuration)
                    .setName(baseName + suffixes[i]);
            taskCreators.add(taskCreator);
            jobCreator.addTaskCreator(taskCreator);
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.models.Task.CreateBatchOperation

        String configuration = commonConfiguration;
        String[] taskNameSuffixes = new String[] { "A", "B", "C", "D" };
        String baseName = "My encoding Task " + UUID.randomUUID().toString();
        int taskCounter = 0;
        for (String suffix : taskNameSuffixes) {
            CreateBatchOperation taskCreator = Task
                    .create(mediaProcessorId, constructTaskBody(taskCounter++))
                    .setConfiguration(configuration).setName(baseName + suffix);
            jobCreator.addTaskCreator(taskCreator);
        }
View Full Code Here

Examples of com.microsoft.windowsazure.services.media.models.Task.CreateBatchOperation

        // Arrange
        String mediaProcessorId = MEDIA_ENCODER_MEDIA_PROCESSOR_ID;
        String taskBody = constructTaskBody(0);
        String configuration = commonConfiguration;
        String name = "My encoding Task " + UUID.randomUUID().toString();
        CreateBatchOperation taskCreator = Task
                .create(mediaProcessorId, taskBody)
                .setConfiguration(configuration).setName(name);
        jobCreator.addTaskCreator(taskCreator);

        JobInfo jobInfo = service.create(jobCreator);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.