Azure与AWS媒体服务API调研报告范本_第1页
Azure与AWS媒体服务API调研报告范本_第2页
Azure与AWS媒体服务API调研报告范本_第3页
Azure与AWS媒体服务API调研报告范本_第4页
Azure与AWS媒体服务API调研报告范本_第5页
已阅读5页,还剩29页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、34/34Azure与AWS媒体服务API调研高天龙TOC o 1-3 h z u HYPERLINK l _Toc349054361 windows Azure PAGEREF _Toc349054361 h 1 HYPERLINK l _Toc349054362 什么是windows Azure PAGEREF _Toc349054362 h 1 HYPERLINK l _Toc349054363 windows Azure提供的功能 PAGEREF _Toc349054363 h 1 HYPERLINK l _Toc349054364 媒体功能 PAGEREF _Toc349054364

2、 h 2 HYPERLINK l _Toc349054365 微软Azure云计算流式视频服务平台 PAGEREF _Toc349054365 h 2 HYPERLINK l _Toc349054366 媒体服务的应用场景 PAGEREF _Toc349054366 h 3 HYPERLINK l _Toc349054367 应用实例 PAGEREF _Toc349054367 h 4 HYPERLINK l _Toc349054368 Windows Azures Media Services REST API PAGEREF _Toc349054368 h 5 HYPERLINK l _T

3、oc349054369 Setup for Media Services REST API Development PAGEREF _Toc349054369 h 5 HYPERLINK l _Toc349054370 Identify Windows Azure Media Services Entities PAGEREF _Toc349054370 h 7 HYPERLINK l _Toc349054371 Connect To Media Services Using the Media Services REST API PAGEREF _Toc349054371 h 8 HYPER

4、LINK l _Toc349054372 Ingest Assets with the media Services REST API; PAGEREF _Toc349054372 h 10 HYPERLINK l _Toc349054373 Ingesting Assets in Bulk with the REST API PAGEREF _Toc349054373 h 16 HYPERLINK l _Toc349054374 Process Asset with the Media Services REST API PAGEREF _Toc349054374 h 19 HYPERLIN

5、K l _Toc349054375 Manage Assets with the Media Services REST API PAGEREF _Toc349054375 h 22 HYPERLINK l _Toc349054376 Deliver Assets with the Media Services REST API PAGEREF _Toc349054376 h 24 HYPERLINK l _Toc349054377 AWS Digital Media API PAGEREF _Toc349054377 h 27 HYPERLINK l _Toc349054378 什么是AWS

6、 PAGEREF _Toc349054378 h 27 HYPERLINK l _Toc349054379 AWS提供的功能: PAGEREF _Toc349054379 h 27 HYPERLINK l _Toc349054380 Digital Media on AWS PAGEREF _Toc349054380 h 28 HYPERLINK l _Toc349054381 应用实例 PAGEREF _Toc349054381 h 31windows Azure什么是windows Azurewindows Azure是为了管理微软建设的数据中心的服务器,网络和存储资源而开发的一款wind

7、ows server 操作系统。windows Azure提供的功能网站,虚拟机,云服务,大型数据,媒体,移动服务。媒体功能支持插入(Ingest)、编码(Encode)、保护(Protect)、流式(Stream)处理,在云中创建、管理和分发媒体。Windows Azure 的媒体服务 PaaS 产品/服务提供了从编码到内容保护再到流和分析的所有内容。涵盖具有 HTML5、Flash 和 Silverlight 的 Windows 8、Windows phone、Xbox、iOS 和 Android 设备。微软Azure云计算流式视频服务平台企业不必通过编码或流媒体构建架构来分配视频内容。微

8、软凭借Windows Azure Media Services扩展了云计算服务,Windows Azure Media Services可以省去企业构建流媒体点播视频的麻烦。微软的Scott Guthrie称,这项服务可以为企业员工提供培训视频,网站的流视频内容,构建Hulu(Netflix)一样的视频点播服务。和许多基于云计算的平台即服务(PaaS)一样,Windows Azure Media Services旨在于使过程简单化,于是,推出了视频流服务。微软Windows Azure官方宣传Guthrie表示,构建一个媒体的分布式平台,为不同设备和客户端设置不同代码和视频流是非常复杂的任务,

9、需要软、硬件的连接,配置和维护。微软的Azure Media Services不再需要提供和管理自定义的基础设施,可以让这个过程变得非常简单。企业可以利用Azure Media Services将视频传到基于Windows、iOS、Android系统的掌上电脑、平板电脑、智能手机和游戏机等设备上。开发者可以利用从 Azure开发者网站上下载的REST、APIs、.net、或SDKs构建自动上传、编码、发送视频的工作流。在网站上,开发者可以浏览帮助文档。Guthrie表示,个人预览版本支持实时流媒体,公共预览版以后将陆续推出。对于收费方式,Azure Media Services是统一收费,每G

10、B 1.99美元,需更大容量就要额外付费。媒体服务的应用场景building end-to-end workflows 构建端到端的工作流在云中构建全面的媒体工作流。从上传媒体到分发内容,媒体服务提供了一系列预生成,使用就绪,第一方和第三方组件,可以组合这些组件以满足您的特定需求。功能包括上传,存储,编码,格式转换,内容保护和交付。building-hybrid workflows开发混合工作流将媒体服务与您已使用的工具和流程集成。例如:现场编码内容,然后将其上传到媒体服务以便转码为多种格式并通过第三方CDN交付。可通过标准REST API 单独调用媒体服务以便于外部应用程序和服务轻松集成。p

11、roviding cloud support for media player提供针对多台设备和平台的云支持跨多种设备创建,管理和交付媒体从未如此简单。媒体服务为您提供向各种设备(Xbox, Windows PC, MacOS,iOS 和Android)交付内容所需的一切。应用实例2012年7月19日,PPTV网络电视和微软在XX签署谅解备忘录,利用Windows Azure平台开发PPTV ATN(Asia TV Networks)电视云平台。PPTV ATN平台能将世界各地的内容商将自己的内容上传到ATN平台上,并授权给各国/地区的服务运营商使用,同时服务运营商不需要昂贵的初期投入资本,就

12、可以迅速整合各类视频资源,快速实现内容定制,定价与广告运作和收费电视的推送。Windows Azures Media Services REST API名词解释:Media Services中的实体:EntityDesciption中文AssetsAn asset is a virutal entity that holds metadata about media.文件夹FilesA file is an actual video or audio blob object on the file system or on a remote server.文件JobsA job is an e

13、ntity that holds metadata about tasks作业,可能含有多个任务TasksA task is an individual operation of work on an asset or file. A task is associated with a job.任务AccessPoliciesAn access policy defines the permissions to a file or an asset(what type of access, and the duration).定义了对文件或asset的访问类型和时间限制LocatorsA lo

14、cator is a URI that provides time-based access to a specific asset.是一个URI,能在一定时间范围内访问某个asset.Job TemplatesA job template provides reusable settings for jobs that you want to run repeatedly. A job template is composed of a collection of task templates.作业模版ContentKeysA content key stores key data that

15、 used to encrypt an asset保存加密信息TaskTemplatesA task template provides reusable settings for tasks that you want to run repeatedly.Each job template has a collection of task templates.任务模版Setup for Media Services REST API DevelopmentMedia Services支持的方法:VerbDescription中文翻译GETreturn the current value of

16、 object获取有URI标识的任何信息POSTCreate an object based on the data provided, or submits a command创建一个对象或者执行一条命令PUTreplaces an object, or creates a named object(when applicable).创建一个命名对象或者替换一个存在对象。DELETEDeletes an object删除一个对象MERGEUpdates an existing object with named property changes.更新已经存在对象的属性HEADReturn m

17、etadata of an object for a GET response除了服务器不返回实体,HEAD和GET方法是一致的媒体服务支持的请求头部(必选):HeaderTypeValueAuthorizationBeaerx-ms-versionDecimal2.0DataServiceVersionDecimal3.0MaxDataServiceVersionDecimal3.0媒体服务支持的请求头部(可选):HeaderTypeValueDateRFC 1123 dateTimestamp of the requestAcceptContent typeapplication/json

18、;odata=verboseAccept-EncodingGzip,deflate对资源,服务可能不压缩而直接返回Accept-Language“en”人类可读的语言Accept-CharsetCharset type like UTF-8字符集,默认UTF-8X- -Method Method通过隧道方式,允许通过GET方法实现防火墙等不支持的PUT/DELETE方法Content-TypeContent type PUT/POST 中实体的类型client-request-idString呼叫方定义的标记本次请求,如有必要,返回时也可以带此信息媒体服务支持的响应头部(可选):HeaderT

19、ypeValuerequest-idString服务端产生的的代表本次操作的标识client-request-idString请求方带来的标识DateRFC 1123 date请求处理时的时间Content-TypeVaries响应实体的类型Content-EncodingVariesGzip or deflate Identify Windows Azure Media Services EntitiesMedia Services的命名机制nb:type:scheme:SSID例子:nb:cid:UUID:0234c75e-7b62-4d81-9373-d869478a6643type:

20、is the type of content idenetifier。内容标识符的类型scheme: is a Media Services recognized naming scheme. 命名方案SSID:scheme-specific ID , is a string that corresponds with IDs in scheme, default UUID, RFC 4122.type:EntityContent Identifier TypeAssetcidAccessPolicypidLocatorlidAssetFilecidContentKeykidJobTempla

21、tejtidTaskTemplatettidJobjidTasktidMediaProcessormpidIngestManifestmidIngestManifestAssetmaidIngestManifestFilemfidConnect To Media Services Using the Media Services REST API连接到媒体服务的REST APIWindows Azure Access Control Service: ACS , create the access token.连接Media Services 需要两样东西:An access token an

22、d the URI of Media Services .step1.Getting an access token获得访问令牌获得令牌的请求POST s:/v2/OAuth2-13 /1.1Content-Type: application/x-www-form-urlencodedHost: Content-Length: 120Expect: 100-continueConnection: Keep-Alivegrant_type=client_credentials&client_id=client id value&client_secret=URL-encoded client s

23、ecret value&scope=urn%3aWindowsAzureMediaServicesclient_id: AccountName,XX名。client_secret:AccountKey,密码。获取AccessToken的响应: /1.1 200 OKCache-Control: public, no-store, max-age=0Content-Type: application/json; charset=utf-8Expires: Fri, 13 Jan 2012 22:40:07 GMTLast-Modified: Fri, 13 Jan 2012 22:40:07 G

24、MTVary: *Server: Microsoft-IIS/7.5Set-Cookie: ASP.NET_SessionId=w3mtu2rnxucaz5tvj0iyfm0t; path=/; OnlyX-AspNetMvc-Version: 2.0X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETX-Content-Type-Options: nosniffDate: Fri, 13 Jan 2012 22:40:07 GMTContent-Length: 580access_token: %3a%2f%2%2fws%2f2005%2f05%2

25、fidentity%2fclaims%2fnameidentifier=client_id& %3a%2f%2fschemas.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1326498007&Issuer= s%3a%2f%2f %2f&HMACSHA256=hV1WF7sTe%2ffoHqzK%2ftmnwQY22NRPaDytcOOpC9Nv4DA%3d,t

26、oken_type: :/ws/2009/11/swt-token-profile-1.0,expires_in:3599,scope:urn:WindowsAzureMediaServicesConnecting to the Media Services URI访问媒体服务的URI:Media Services 的根URI是 HYPERLINK s:/API/ s:/API/;上传,下载 Asset 的根URI是 HYPERLINK s:/ s:/;创建一个Asset:POST s:/API/Assets /1.1Content-Type: application/json;odata=v

27、erboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 2.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a%2f%2fschemas.microsoft %2

28、faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1335602357&Issuer= s%3a%2f%2%2f&HMACSHA256=XQs5T%2fEfdO39%2f0Z9%2fBBkA12%2bbUUEY21YyefWXuRYZlY%3dHost: Content-Length: 27Expect: 100-continue Name : NewJSONAsset Ingest Asse

29、ts with the media Services REST API;用REST 风格 API 插入 Assets:插入Asset的步骤:Create an Asset Encrypt an AssetUpload a file to blob storage1.Create the Asset: 创建Asset什么是Asset?an asset is a container for multiple types or sets of objects in Media Services, including video, audio, images, thumbnail collection

30、s, text tracks, and closed caption files.POST s:/API/Assets /1.1Content-Type: application/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 1.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=yo

31、uraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a%2f%2fschemas.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1335602357&Issuer= s%3a%2f%2%2f&HMACSHA256=XQs5T%2fEfdO39%2f0Z9%2fBBkA1

32、2%2bbUUEY21YyefWXuRYZlY%3dHost: Content-Length: 27Expect: 100-continue Name : NewJSONAsset Create the assets Response: /1.1 201 CreatedCache-Control: no-cacheContent-Length: 1353Content-Type: application/json;odata=verbose;charset=utf-8Location: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea

33、7-fffb0b24f36b)Server: Microsoft-IIS/7.5x-ms-request-id: 7739638a-da3a-4a6e-ad51-ea0bf87f02adX-Content-Type-Options: nosniffDataServiceVersion: 1.0;X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETDate: Fri, 27 Apr 2012 22:39:18 GMTd:_metadata:id: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-ae

34、a7-fffb0b24f36b),uri: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0b24f36b),type:Microsoft.Cloud.Media.Vod.Rest.Data.Models.Asset,actions: s:/api/$metadata#WindowsAzureMediaServices.Publish:title:Publish,target: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0b24f36b)/Pu

35、blish,Locators:_deferred:uri: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0b24f36b)/Locators,ContentKeys:_deferred:uri: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0b24f36b)/ContentKeys,Files:_deferred:uri: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0

36、b24f36b)/Files,ParentAssets:_deferred:uri: s:/api/Assets(nb%3Acid%3AUUID%3Aaa5bfdd9-900a-431d-aea7-fffb0b24f36b)/ParentAssets,Id:nb:cid:UUID:aa5bfdd9-900a-431d-aea7-fffb0b24f36b,State:0,Created:/Date(1335566358610)/,LastModified:/Date(1335566358610)/,AlternateId:null,Name:NewJSONAsset,Options:02. En

37、crypt an Asset(Optional)3. Upload a file to blob storage上传文件到存储传文件到blob 存储,blob(binary large object)a. Set the AccessPolicy:设置asset的写权限,DurationInMinutesb. retrieve a URL to upload the file to c. perform the actual upload actions;step1. Set the AccessPolicyPOST s:/API/AccessPolicies /1.1Content-Type

38、: application/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 1.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a

39、%2f%2fschemas.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1335956356&Issuer= s%3a%2f%2%2f&HMACSHA256=1B1ysfYRcpI%2fQY9SSNIBBVBpgc67j4R2yXD7BCxs8D8%3dHost: Content-Length: 76Expect: 100-continueName: NewUpl

40、oadPolicy, DurationInMinutes : 300, Permissions : 2 Set the accessPolicy Response: /1.1 201 CreatedCache-Control: no-cacheContent-Length: 526Content-Type: application/json;odata=verbose;charset=utf-8Location: s:/api/AccessPolicies(nb%3Apid%3AUUID%3A94763883-537a-41c0-a097-4e3f755bbeab)Server: Micros

41、oft-IIS/7.5x-ms-request-id: 0a262141-e539-4fa6-b5d6-80cdf26d3ff6X-Content-Type-Options: nosniffDataServiceVersion: 1.0;X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETDate: Wed, 02 May 2012 00:59:30 GMTd:_metadata:id: s:/api/AccessPolicies(nb%3Apid%3AUUID%3A94763883-537a-41c0-a097-4e3f755bbeab),uri:

42、 s:/api/AccessPolicies(nb%3Apid%3AUUID%3A94763883-537a-41c0-a097-4e3f755bbeab),type:Microsoft.Cloud.Media.Vod.Rest.Data.Models.AccessPolicy,Id:nb:pid:UUID:94763883-537a-41c0-a097-4e3f755bbeab,Created:/Date(1335920371136)/,LastModified:/Date(1335920371136)/,Name:NewUploadPolicy,DurationInMinutes:300,

43、Permissions:2step2. Get The Upload URL获得上传的URL为了获取真实上传URL,必须创建一个定位器。Create a Locator entity:POST s:/API/Locators /1.1Content-Type: application/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 1.0Authorization: Bearer %3a%2f%2%2fw

44、s%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a%2f%2fschemas.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1335956356&Issuer=

45、 s%3a%2f%2%2f&HMACSHA256=1B1ysfYRcpI%2fQY9SSNIBBVBpgc67j4R2yXD7BCxs8D8%3dHost: Content-Length: 183Expect: 100-continueAccessPolicyId: nb:pid:UUID:94763883-537a-41c0-a097-4e3f755bbeab, AssetId : nb:cid:UUID:cab358e0-deaa-4c4f-9a9f-35687b54b0aa, StartTime : 5/2/2012 1:04:32 AM, Type : 1 Create Locator

46、 Response: /1.1 201 CreatedCache-Control: no-cacheContent-Length: 1148Content-Type: application/json;odata=verbose;charset=utf-8Location: s:/api/Locators(nb%3Alid%3AUUID%3A8002bf3c-a215-4602-b4a4-2aac367f709e)Server: Microsoft-IIS/7.5x-ms-request-id: 6937fd51-70ad-4d3d-8138-991863906b43X-Content-Typ

47、e-Options: nosniffDataServiceVersion: 1.0;X-AspNet-Version: 4.0.30319X-Powered-By: ASP.NETDate: Wed, 02 May 2012 00:59:30 GMTd:_metadata:id: s:/api/Locators(nb%3Alid%3AUUID%3A8002bf3c-a215-4602-b4a4-2aac367f709e),uri: s:/api/Locators(nb%3Alid%3AUUID%3A8002bf3c-a215-4602-b4a4-2aac367f709e),type:Micro

48、soft.Cloud.Media.Vod.Rest.Data.Models.Locator,AccessPolicy:_deferred:uri: s:/api/Locators(nb%3Alid%3AUUID%3A8002bf3c-a215-4602-b4a4-2aac367f709e)/AccessPolicy,Asset:_deferred:uri: s:/api/Locators(nb%3Alid%3AUUID%3A8002bf3c-a215-4602-b4a4-2aac367f709e)/Asset,Id:nb:lid:UUID:8002bf3c-a215-4602-b4a4-2aa

49、c367f709e,ExpirationDateTime:/Date(1335938672000)/,Type:1,Path: s:/asset-0a5ed405-ac50-45c7-a3bf-04d20eca17ad?st=2012-05-02T01%3A04%3A32Z&se=2012-05-02T06%3A04%3A32Z&sr=c&si=8002bf3c-a215-4602-b4a4-2aac367f709e&sig=r9IVlPDi4TfaCnG8fqpZUwr%2F3pMPsdFyVVYkwe6GKg0%3D,AccessPolicyId:nb:pid:UUID:94763883-

50、537a-41c0-a097-4e3f755bbeab,AssetId:nb:cid:UUID:cab358e0-deaa-4c4f-9a9f-35687b54b0aa,StartTime:/Date(1335920672000)/Path 是上传的URL。Preform the File Upload:PUT s:/asset-9cd47271-9798-446f-b91d-22b0d228cc17/samplevid.wmv?st=2012-05-08T19%3A32%3A01Z&se=2012-05-09T00%3A32%3A01Z&sr=c&si=3e21040c-95d8-48b0-

51、aee5-171d9621105d&sig=%2FSS6c%2FOELEtDfqi5TT7hFLYut38IKrV6iiQEhV2t52s%3D /1.1Content-Type: application/octet-streamx-ms-version: 2011-08-18x-ms-date: 2011-01-17x-ms-blob-type: BlockBlobHost: Content-Length: 4045744Expect: 100-continuewsh?1hfN?C?V?,?-?sd?:?j?dCfT?,?6?8?f?p?o?6C?q?KbP?w*?iRest of bina

52、ry data truncated for readabilityResponse: /1.1 201 CreatedTransfer-Encoding: chunkedContent-MD5: 2Lzhghji5MH0CZ+EUidXyA=Last-Modified: Tue, 08 May 2012 19:37:16 GMTETag: 0 x8CEFB691BBEDD64Server: Windows-Azure-Blob/1.0 Microsoft- API/2.0 x-ms-request-id: 4902799b-568f-49a8-893c-77fbee74ce18x-ms-ver

53、sion: 2011-08-18Date: Tue, 08 May 2012 19:37:15 GMT0Revoking the Upload URL(Optional)删除上传定位器以取消对你Asset得写权限。Delete the upload Locator to revoke write access to your Assets blobstorage container;DELETE s:/api/Locators(nb%3Alid%3AUUID%3A81e5bd32-46ad-4d66-b7b8-50008ee4aec5) /1.1Content-Type: applicatio

54、n/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 1.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a%2f%2fschema

55、s.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1336547485&Issuer= s%3a%2f%2%2f&HMACSHA256=ISzXspEIbgWifYYXqiPK1vo3%2bDHnTsX85umNxRjD3kQ%3dHost: Content-Length: 0成功会返回 /1.1 204 No ContentGenerating File Meta

56、dataGET s:/api/CreateFileInfos?assetid=nb%3Acid%3AUUID%3Ac80d312d-7cb1-44aa-bb23-2c35d10c44bd /1.1Content-Type: application/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 1.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fide

57、ntity%2fclaims%2fnameidentifier=youraccountname&urn%3aSubscriptionId=2f84471d-b1ae-4e75-aa09-010f0fc0cf5b& %3a%2f%2fschemas.microsoft %2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider= s%3a%2f%2%2f&Audience=urn%3aWindowsAzureMediaServices&ExpiresOn=1336547485&Issuer= s%3a%2f%2%2f&HMACS

58、HA256=ISzXspEIbgWifYYXqiPK1vo3%2bDHnTsX85umNxRjD3kQ%3dHost: Content-Length: 0Ingesting Assets in Bulk with the REST APIRESTAPI向Assets批量插入workflow Create the IngestManifestCreate the AssetsCreate the IngestManifestAssetsOptionally Create ContentKeys used for EncryptionsCreate the IngestManifestFiles

59、for each AssetUpload the files to Blob StorageMonitor Bulk Ingest ProgressCreate the IngestManifest创建插入请求清单The IngestManifest is a container for a set of asset, asset files , and statistic information that can be used to determine the progress of bulk ingesting for the set.POST s:/ /API/IngestManife

60、sts /1.1Content-Type: application/json;odata=verboseAccept: application/json;odata=verboseDataServiceVersion: 3.0MaxDataServiceVersion: 3.0 x-ms-version: 2.0Authorization: Bearer %3a%2f%2%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0-F35C-4A5A-9249-485BBF4EC70B& %3a%2f%2fschemas.mic

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论