Last week, the Windows Azure Media Services (WAMS) team published a new release of the WindowsAzure.MediaServices.Extensions NuGet package (2.0.0). Starting from this new version, the WAMS team will be taking ownership of the NuGet package and the Extensions source code to make sure that they are aligned and consistent with the Windows Azure Media Services .NET SDK. The Extensions source code was moved to a new GitHub repository under the WindowsAzure organization: https://github.com/WindowsAzure/azure-sdk-for-media-services-extensions (the previous GitHub repository is already deprecated).
The following are some of the highlights for this new NuGet package release:
- It targets the WindowsAzure.MediaServices NuGet package 3.0.0 (or higher). This is latest version of the Windows Azure Media Services .NET SDK.
- It does not add source code files to your project anymore. Now, the extensions are shipped in the Microsoft.WindowsAzure.MediaServices.Client.Extensions assembly that is added as a reference to your project.
- It contains several breaking changes with the previous extensions (1.0.6). Most of them are related to a different organization of the extension methods (to avoid defining all of them for CloudMediaContext class) and renaming.
- It contains new extensions for creating assets by automatically selecting one of the Storage accounts attached to the Media Services account based on different strategies.
Sample Workflow using the Extensions
The following sample code shows a basic media workflow that uses the new Windows Azure Media Services .NET SDK Extensions NuGet package.