Media Services migration code sample comparison
Compare the SDKs
You can use some of our code samples to compare the way things are done between SDKs.
Samples for comparison
The following table is a listing of samples for comparison between v2 and v3 for common scenarios.
| Scenario | v2 API | v3 API |
|---|---|---|
| Create an asset and upload a file | v2 .NET example | v3 .NET example |
| Submit a job | v2 .NET example | v3 .NET example Shows how to first create a Transform and then submit a Job. |
| Publish an asset with AES encryption | 1. Create ContentKeyAuthorizationPolicyOption2. Create ContentKeyAuthorizationPolicy3. Create AssetDeliveryPolicy4. Create Asset and upload content OR submit Job and use OutputAsset5. Associate AssetDeliveryPolicy with Asset6. Create ContentKey7. Attach ContentKey to Asset8. Create AccessPolicy9. Create Locatorv2 .NET example |
1. Create ContentKeyPolicy2. Create Asset3. Upload content or use Asset as JobOutput4. Create StreamingLocatorv3 .NET example |
| Get job details and manage jobs | Manage jobs with v2 | Manage jobs with v3 |
Povratne informacije
Pošalјite i prikažite povratne informacije za