Ah just what I was looking for, someone to answer any question!
I am trying to use the Azure MediaService API along with the Azure Storage API in an API Service hosted in Azure.
The user sends the video stream to the service as an HttpPost, the service saves the video as a blob in my Storage account, the media service encodes the video and when the link to the video is ready it is returned to the user.
But when I am trying to create an Asset a System.NotSupportedException is thrown with the message:
I am using the following versions of the required dependencies:
Code:
Microsoft.Data.Services.Client - 5.6.2.0
Microsoft.WindowsAzure.MediaServices.Client - 3.0.0.8
Microsoft.WindowsAzure.Storage - 3.1.0.1
Here is my code:
Code:
CloudMediaContext _context;
IAsset asset;
using (MemoryStream Ms = new MemoryStream(data.Data))
{
_context = new CloudMediaContext("accountName", "accountKey");
asset = await _context.Assets.CreateAsync("blobContainerName",
AssetCreationOptions.None,CancellationToken.None);
...
...
}
The data.Data contains the byte[] of the video. The exception is thrown when CreateAsync is called. I tried _context.Assets.Create with no luck.
Thanks a lot for the help beforehand.
sarcasm