Skip to content

Commit

Permalink
Merge pull request #98 from Azure/dev
Browse files Browse the repository at this point in the history
Azure Media Services Release 3.1.0.0
  • Loading branch information
gtrifonov committed Dec 22, 2014
2 parents 90bc34c + cd72fdd commit 32fd24e
Show file tree
Hide file tree
Showing 90 changed files with 3,207 additions and 1,436 deletions.
17 changes: 8 additions & 9 deletions .nuget/windowsazure.mediaservices.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>windowsazure.mediaservices</id>
<version>3.0.0.8</version>
<version>3.1.0.0</version>
<title>Windows Azure Media Services .NET SDK</title>
<authors>Microsoft Corporation</authors>
<owners>Microsoft Corporation</owners>
<licenseUrl>http://go.microsoft.com/fwlink/?LinkID=272666&amp;clcid=0x409</licenseUrl>
<projectUrl>http://aka.ms/wamsmsdn</projectUrl>
<iconUrl>http://nimbuspmteam.blob.core.windows.net/nuget/Media Services 150.png</iconUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<description>This package contains Windows Azure Media Service library 3.0.0.8 for .NET.</description>
<description>This package contains Windows Azure Media Service library 3.1.0.0 for .NET.</description>
<releaseNotes>For more information, please check our forum: http://social.msdn.microsoft.com/Forums/en-US/MediaServices/threads

For MSDN documentation please visit http://aka.ms/wamsmsdn
Expand All @@ -20,14 +20,13 @@ Source in GitHub at https://github.com/WindowsAzure/azure-sdk-for-media-services
<language>en-US</language>
<tags>windowsazureofficial, WindowsAzure, MediaServices, Microsoft,</tags>
<dependencies>
<dependency id="Microsoft.Data.OData" version="5.6.0" />
<dependency id="Microsoft.Data.Edm" version="5.6.0" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.0" />
<dependency id="System.Spatial" version="5.6.0" />
<dependency id="Microsoft.Data.OData" version="5.6.3" />
<dependency id="Microsoft.Data.Edm" version="5.6.3" />
<dependency id="Microsoft.Data.Services.Client" version="5.6.3" />
<dependency id="System.Spatial" version="5.6.3" />
<dependency id="TransientFaultHandling.Core" version="5.1.1209.1" />
<dependency id="WindowsAzure.Storage" version="3.1.0.0" />
<dependency id="Microsoft.WindowsAzure.ConfigurationManager" version="2.0.3.0" />
<dependency id="Newtonsoft.Json" version="6.0.3.0" />
<dependency id="WindowsAzure.Storage" version="4.3.0.0" />
<dependency id="Newtonsoft.Json" version="6.0.6.0" />
</dependencies>
<references>
<reference file="Microsoft.WindowsAzure.MediaServices.Client.dll" />
Expand Down
98 changes: 49 additions & 49 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
# Windows Azure Media Services SDK .NET 4

Windows Azure Media Services allows you to build a media distribution solution that can stream audio and video to Windows, iOS, Android, and other devices and platforms.To learn more, visit our [Developer Center](http://www.windowsazure.com/en-us/develop/media-services/).

# Windows Azure Media Services SDK .NET 4.5

Windows Azure Media Services allows you to build a media distribution solution that can stream audio and video to Windows, iOS, Android, and other devices and platforms.To learn more, visit our [Developer Center](http://www.windowsazure.com/en-us/develop/media-services/).

## Release Notes

Please read the latest note here: https://github.com/Azure/azure-sdk-for-media-services/releases.

## Getting Started

If you are new to Media Services, you can get started by following our [tutorials](http://www.windowsazure.com/en-us/develop/media-services/tutorials/get-started/). You could be able to bring media into Azure, encoded it, package it into stream-able format and make it available for streaming.

## Download Source Code

To get the source code of our SDKs and samples via **git** just type:

git clone https://github.com/WindowsAzure/azure-sdk-for-media-services.git
cd ./azure-sdk-for-media-services/

## .NET SDK

### Prerequisites

1. A Media Services account in a new or existing Windows Azure subscription. See the topic [How to Create a Media Services Account](http://www.windowsazure.com/en-us/manage/services/media-services/how-to-create-a-media-services-account/).
2. Operating Systems: Windows 7, Windows 2008 R2, or Windows 8.
3. .NET Framework 4.5 or .NET Framework 4.
4. Visual Studio 2012 or Visual Studio 2010 SP1 (Professional, Premium, Ultimate, or Express).

### Building and Referencing the SDK

To build sdk sources and tests type following commands:

cd ./azure-sdk-for-media-services/
msbuild ./SDK.Client.sln


### Running the Tests

This set of test allows you to verify Windows Azure Media Services .Net SDK functionality using your existing Windows Azure Media Services account. Please check out [Test instruction](https://github.com/WindowsAzure/azure-sdk-for-media-services/tree/master/test) on how to use it.


## Need Help?

Be sure to check out the Mobile Services [Developer Forum](http://social.msdn.microsoft.com/Forums/en-US/MediaServices/threads) if you are having trouble. The Media Services product team actively monitors the forum and will be more than happy to assist you.

## Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in [Windows Azure Projects Contribution Guidelines](http://windowsazure.github.com/guidelines.html).

If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/WindowsAzure/azure-media-services/issues) section of the project.

## Learn More
[Windows Azure Media Services Developer Center](http://www.windowsazure.com/en-us/develop/media-services/)
## Getting Started

If you are new to Media Services, you can get started by following our [tutorials](http://www.windowsazure.com/en-us/develop/media-services/tutorials/get-started/). You could be able to bring media into Azure, encoded it, package it into stream-able format and make it available for streaming.

## Download Source Code

To get the source code of our SDKs and samples via **git** just type:

git clone https://github.com/WindowsAzure/azure-sdk-for-media-services.git
cd ./azure-sdk-for-media-services/

## .NET SDK

### Prerequisites

1. A Media Services account in a new or existing Windows Azure subscription. See the topic [How to Create a Media Services Account](http://www.windowsazure.com/en-us/manage/services/media-services/how-to-create-a-media-services-account/).
2. Operating Systems: Windows 7, Windows 2008 R2, or Windows 8.
3. .NET Framework 4.5.
4. Visual Studio 2012 or Visual Studio 2010 SP1 (Professional, Premium, Ultimate, or Express).

### Building and Referencing the SDK

To build sdk sources and tests type following commands:

cd ./azure-sdk-for-media-services/
msbuild ./SDK.Client.sln


### Running the Tests

This set of test allows you to verify Windows Azure Media Services .Net SDK functionality using your existing Windows Azure Media Services account. Please check out [Test instruction](https://github.com/WindowsAzure/azure-sdk-for-media-services/tree/master/test) on how to use it.


## Need Help?

Be sure to check out the Mobile Services [Developer Forum](http://social.msdn.microsoft.com/Forums/en-US/MediaServices/threads) if you are having trouble. The Media Services product team actively monitors the forum and will be more than happy to assist you.

## Contribute Code or Provide Feedback

If you would like to become an active contributor to this project please follow the instructions provided in [Windows Azure Projects Contribution Guidelines](http://windowsazure.github.com/guidelines.html).

If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/WindowsAzure/azure-media-services/issues) section of the project.

## Learn More
[Windows Azure Media Services Developer Center](http://www.windowsazure.com/en-us/develop/media-services/)
Binary file added amscer.pfx
Binary file not shown.
2 changes: 1 addition & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@

<Message Importance="high" Text="DailyBvtRun tests:" />
<Exec
Command="MSTest.exe /testcontainer:$(ScenarioTestAssemblyName) /resultsfile:$(TestOutputDirectory)\DailyBvtRun.trx /category:DailyBvtRun"
Command="MSTest.exe /testcontainer:$(ScenarioTestAssemblyName) /resultsfile:$(TestOutputDirectory)\DailyBvtRun.trx /category:Bvt"
ContinueOnError="false" />
</Target>

Expand Down
22 changes: 5 additions & 17 deletions ci/SignMedia.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
@echo off

echo Validating the \\adxsdksign\signed share is empty...
for /F %%I in ('dir /s /b c:\signing\signed\*.*') do (
echo FAILED. The \\adxsdksign\signed share is not empty. Please empty the share before starting a new signing job.
exit /b -1
)
echo OK

echo Cleaning signed and packages directories
del /q c:\signing\signed\*.*
del /q c:\packages\*.*
Expand All @@ -17,7 +10,7 @@ if %ERRORLEVEL% neq 0 goto copyfailed
echo OK

echo Signing managed desktop library DLLs...
C:\tools\ci-signing\CodeSignUtility\csu.exe /c1=72 /c2=10006 "/d=.NET SDK" "/kw=MediaServices"
%CI_SIGNING%\CodeSignUtility\csu.exe /c1=72 /c2=10006 "/d=.NET SDK" "/kw=MediaServices"
if %ERRORLEVEL% neq 0 goto signfailed
echo OK

Expand All @@ -26,12 +19,12 @@ del /q c:\signing\tosign\*.*
echo OK

echo Copying Media SDK signed managed DLLs and the pdbs to the final drop location...
echo Creating \drop\WAMSSDK\lib\net40
md .\drop\WAMSSDK\lib\net40
echo Creating \drop\WAMSSDK\lib\net45
md .\drop\WAMSSDK\lib\net45
echo Copy MediaServices.Client.dll
copy /y c:\signing\signed\Microsoft.WindowsAzure.MediaServices.Client.dll .\drop\WAMSSDK\lib\net40\
copy /y c:\signing\signed\Microsoft.WindowsAzure.MediaServices.Client.dll .\drop\WAMSSDK\lib\net45\
echo Copy MediaServices.Client.pdb
copy /y .\Publish\Build\Release\Microsoft.WindowsAzure.MediaServices.Client.pdb .\drop\WAMSSDK\lib\net40\
copy /y .\Publish\Build\Release\Microsoft.WindowsAzure.MediaServices.Client.pdb .\drop\WAMSSDK\lib\net45\
echo Copy Nuget spec
copy /y .\.nuget\windowsazure.mediaservices.nuspec .\drop\WAMSSDK\
if %ERRORLEVEL% neq 0 goto copyfailed
Expand All @@ -42,11 +35,6 @@ nuget.exe pack .\drop\WAMSSDK\windowsazure.mediaservices.nuspec -o .\drop -Symbo
if %ERRORLEVEL% neq 0 goto packagingfailed
echo OK

echo Publishing Media SDK NuGet Package to Myget server
nuget push .\drop\windowsazure.mediaservices.%1.nupkg %2 -Source %3
if %ERRORLEVEL% neq 0 goto publishfailed
echo OK

echo Copying files to the packages share...
copy .\drop\*.* c:\packages
if %ERRORLEVEL% neq 0 goto copyfailed
Expand Down
92 changes: 46 additions & 46 deletions src/net/Client/App.config
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.0.0" newVersion="5.6.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.3.0" newVersion="3.0.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.TransientFaultHandling.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.1.1209.1" newVersion="5.1.1209.1" />
</dependentAssembly>
</assemblyBinding>

</runtime>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Spatial" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Data.Services.Client" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.6.3.0" newVersion="5.6.3.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.WindowsAzure.Storage" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.3.0.0" newVersion="4.3.0.0" />
</dependentAssembly>
</assemblyBinding>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.TransientFaultHandling.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.1.1209.1" newVersion="5.1.1209.1" />
</dependentAssembly>
</assemblyBinding>

</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup></configuration>
16 changes: 16 additions & 0 deletions src/net/Client/CloudMediaContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public partial class CloudMediaContext : MediaContextBase
private IngestManifestAssetCollection _ingestManifestAssets;
private IngestManifestFileCollection _ingestManifestFiles;
private StorageAccountBaseCollection _storageAccounts;
private EncodingReservedUnitCollection _encodingReservedUnits;
private MediaServicesClassFactory _classFactory;
private OAuthDataServiceAdapter dataServiceAdapter;
private ServiceVersionAdapter versionAdapter;
Expand Down Expand Up @@ -353,5 +354,20 @@ public override IngestManifestAssetCollection IngestManifestAssets
return this._ingestManifestAssets;
}
}

/// <summary>
/// Gets the collection of EncodingReservedUnits
/// </summary>
public override EncodingReservedUnitCollection EncodingReservedUnits
{
get
{
if (_encodingReservedUnits == null)
{
Interlocked.CompareExchange(ref _encodingReservedUnits, new EncodingReservedUnitCollection(this), null);
}
return this._encodingReservedUnits;
}
}
}
}
47 changes: 47 additions & 0 deletions src/net/Client/Collections/EncodingReservedUnitCollection.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//-----------------------------------------------------------------------
// <copyright file="EncodingReservedUnitCollection.cs" company="Microsoft">Copyright 2014 Microsoft Corporation</copyright>
// <license>
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </license>


namespace Microsoft.WindowsAzure.MediaServices.Client
{
public class EncodingReservedUnitCollection : CloudBaseCollection<IEncodingReservedUnit>
{
/// <summary>
/// The name of the storage account processor set.
/// </summary>
public const string EncodingReservedUnitSet = "EncodingReservedUnitTypes";
/// <summary>
/// Initializes a new instance of the <see cref="EncodingReservedUnitCollection"/> class
/// </summary>
public EncodingReservedUnitCollection()
: base(null)
{

}
/// <summary>
/// Initializes a new instance of the <see cref="EncodingReservedUnitCollection"/> class.
/// </summary>
/// <param name="mediaContext">The media context.</param>
internal EncodingReservedUnitCollection(MediaContextBase mediaContext)
: base(mediaContext)
{
MediaContext = mediaContext;
MediaServicesClassFactory factory = MediaContext.MediaServicesClassFactory;
this.Queryable = factory.CreateDataServiceContext().CreateQuery<IEncodingReservedUnit, EncodingReservedUnitData>(EncodingReservedUnitSet);
}

}
}
4 changes: 2 additions & 2 deletions src/net/Client/Collections/StorageAccountBaseCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public class StorageAccountBaseCollection:CloudBaseCollection<IStorageAccount>


/// <summary>
/// Initializes a new instance of the <see cref="MediaProcessorBaseCollection"/> class to be used for Mocking purposes.Introduced in version 3.0
/// Initializes a new instance of the <see cref="StorageAccountBaseCollection"/> class to be used for Mocking purposes.Introduced in version 3.0
/// </summary>
public StorageAccountBaseCollection()
: base(null)
{

}
/// <summary>
/// Initializes a new instance of the <see cref="MediaProcessorBaseCollection"/> class.
/// Initializes a new instance of the <see cref="StorageAccountBaseCollection"/> class.
/// </summary>
/// <param name="mediaContext">The media context.</param>
internal StorageAccountBaseCollection(MediaContextBase mediaContext)
Expand Down

0 comments on commit 32fd24e

Please sign in to comment.