Amber
ZhaoThu, Feb 26 2015 4:09 AM由于海外Azure和中国Azure有不同的domain,很多用户在使用媒体服务RESTAPI时,需要指定中国Azure媒体服务的Endpoint。本篇文章主要介绍,如何快速查找中国媒体服务的Endpoint:登陆中国Azure的门户,进入媒体服务账号的页面,并点击“以编程方式上载视频”2. 如下示例代码为中黄线的部分为中国Azure媒体服务的上海的Endpoint// Create a .NET console app
// Set the project properties to use the full .NET Framework (not Client Profile)
// With NuGet Package Manager, install windowsazure.mediaservices
// add: using Microsoft.WindowsAzure.MediaServices.Client;
var uploadFilePath = @"YOUR FILE PATH";
// For hitting the Shanghai API endpoint, use "https://wamsshaclus001rest-hs.chinacloudapp.cn/API/",
...
继续阅读
(33)