Media file is not uploaded via Azure Media Services

300 Views Asked by At

I'm trying to upload a mp4 file into azure media services. Just upload, no encoding/encrypting. My code is as follows

CloudMediaContext context = new CloudMediaContext("<id>", "<secret>");
var asset = context.Assets.Create("MyFile", AssetCreationOptions.None);
var file = asset.AssetFiles.Create("MyFile.mp4");
file.Upload(@"e:\MyFile.mp4");

Using Fiddler I can see that the file is uploaded. But when I go into Azure management Console I can see an asset with the name "MyFile", but it's size is 0! Could you please advise?

1

There are 1 best solutions below

2
On

There seems to be a bug in the SDK that causes the content size to say 0. Apparently it is fixed in the next release of the SDK.

See the comment in the following post for more info : Thread on latest Azure Media SDK