我试图将mp4文件上传到azure媒体服务。只需上传,不用编码/加密。 我的代码如下媒体文件未通过Azure媒体服务上传
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");
使用招我可以看到文件上传。但是当我进入Azure管理控制台时,我可以看到名为“MyFile”的资产,但它的大小为0! 你能提供建议吗?
**你可以参考这个链接** http://stackoverflow.com/questions/15465040/cant-upload-to -azure-media-services-file-not-found/16767326#16767326 – user2412511
**你可以参考这个链接** http://stackoverflow.com/questions/15465040/cant-upload-to-azure-media- services-file-not-found/16767326#16767326 – user2412511
谢谢,user2412511! – vyakhir