How to run the example:
| Please make sure you have the licenseKey, licensePassword and accountHexCode handy |
| Please have a Java 1.5 or above (JRE or JDK) installed |
- Download the DemoExample.zip

- For reference download Demo Example Source Code.zip

- Extract the attached DemoExample.zip file anywhere (in our case C:\a)
- Go in the extracted directory (in our case C:\a)
- Edit the config.properties file. Make sure to set the licenseKey, licensePassword and accountHexCode with the values given to you.
- Follow the steps below
C:\a>run -u "C:\Lady.wmv"
Auth Token Generated: [a71a0161-bdc8-4a89-94dd-68aad6948fa1]
Upload Request had been send to server. Just wait for the Response
File Uploaded successfully
File is uploaded to Folder [5466]
Logged Out Auth Token: [a71a0161-bdc8-4a89-94dd-68aad6948fa1]
| Get the folder id above [5466] and put as part of the argument in the next command as shown below |
C:\a>run -g 5466
Auth Token Generated: [ef50c74a-9d3d-4f0c-942d-edbddd5d3662]
Asset Master Id: 5619
Streaming URL: http://anvil.razorstream.com/mediaserver?k=Ytc7QyJQP1o9NjfRmuYEfIgJVzsXUz3hC3xUczJfJNu6pYH2RN1L8LZ73L6C5gWC
Logged Out Auth Token: [ef50c74a-9d3d-4f0c-942d-edbddd5d3662]
| Get the assetMaster id above [5619] and put as part of the argument in the next command as shown below, specify encodingProfileId as second arguement |
C:\a>run -t 5619 52
Auth Token Generated: [09724d75-ec7a-41b7-ba7b-ada03f6c8abd]
Transcoding Request had been send to server for AssetMaster [5619]
Logged Out Auth Token: [3eacb0a9-306b-45e1-9269-898735339e9f]
| The following command can be ran on the assetMasterId to get the transcoded assetId and it's associated URL. You might have to run multiple times. You will only get back the assetId when the transcoding is completed |
C:\a>java -jar WebServiceExample.jar -l 5619
Auth Token Generated: [a75b1198-d8c2-47c1-920f-608c21d70255]
Asset Id: 156139, Type: VIDEO
Streaming URL: http://anvil.razorstream.com/mediaserver?k=Ytc7QyJQP1q+YNMcugp5wIgJVzsXUz3hC3xUczJfJNvTIc5eOdB+X9Mgpg0JjENX
Logged Out Auth Token: [a75b1198-d8c2-47c1-920f-608c21d70255]