Package com.microsoft.windowsazure.services.media.models

Examples of com.microsoft.windowsazure.services.media.models.LocatorInfo


        AccessPolicyInfo accessPolicyInfo = service.create(AccessPolicy.create(
                testPolicyPrefix + "uploadAesPortectedAssetSuccess",
                durationInMinutes, EnumSet.of(AccessPolicyPermission.WRITE)));

        // creates locator for the input media asset
        LocatorInfo locatorInfo = service.create(Locator.create(
                accessPolicyInfo.getId(), assetId, LocatorType.SAS));
        WritableBlobContainerContract blobWriter = service
                .createBlobWriter(locatorInfo);
        return blobWriter;
    }
View Full Code Here


            InterruptedException, IOException {
        AccessPolicyInfo readAP = service.create(AccessPolicy.create(
                testPolicyPrefix + "tempAccessPolicy",
                availabilityWindowInMinutes,
                EnumSet.of(AccessPolicyPermission.READ)));
        LocatorInfo readLocator = service.create(Locator.create(readAP.getId(),
                assetId, LocatorType.SAS));
        URL file = new URL(readLocator.getBaseUri() + "/" + fileName
                + readLocator.getContentAccessToken());

        // There can be a delay before a new read locator is applied for the
        // asset files.
        InputStream reader = null;
        for (int counter = 0; true; counter++) {
View Full Code Here

TOP

Related Classes of com.microsoft.windowsazure.services.media.models.LocatorInfo

Copyright © 2018 www.massapicom. 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.