【正文】
6=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3dHost: ContentLength: 152Expect: 100continue{ ParentIngestManifestId : nb:mid:UUID:5c77f186414f8b48823117f9264e2048, Asset : { Id : nb:cid:UUID:b757929a5a57430bb33ec05c6cbef02e}}4. Optionally Create ContentKeys used for EncryptionPOST ContentType: application/json。) HTTP/ContentType: application/json。HMACSHA256=gR%2fNaIZgolFLxBOmfSECrp16Mp0Mti3KoePVjBUCzls%3dHost: ContentLength: 476{Name : NewTestJob, InputMediaAssets : [{__metadata : {uri : (39。nb%3Ajid%3AUUID%3A40dc7bef6bd922479f3dd80bc257d71539。XAspNetVersion: XPoweredBy: Date: Sun, 13 May 2012 01:22:53 GMT{d:{__metadata:{id:(39。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。Issuer=%3a%2f%%2famp。Issuer=%3a%2f%%2famp。Issuer=%3a%2f%%2famp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。)/State HTTP/ContentType: application/json。odata=verbose。nb%3Ajid%3AUUID%3A40dc7bef6bd922479f3dd80bc257d71539。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。ExpiresOn=1334275521amp。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0F35C4A5A9249485BBF4EC70Bamp。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。nb%3Alid%3AUUID%3A8002bf3ca2154602b4a42aac367f709e39。nb%3Apid%3AUUID%3A94763883537a41c0a0974e3f755bbeab39。step1. Set the AccessPolicyPOST ContentType: application/json。)Server: MicrosoftIIS/xmsrequestid: 7739638ada3a4a6ead51ea0bf87f02adXContentTypeOptions: nosniffDataServiceVersion: 。Audience=urn%3aWindowsAzureMediaServicesamp。scope=urn%3aWindowsAzureMediaServicesclient_id: AccountName,帳戶名。媒體服務(wù)的應(yīng)用場景building endtoend workflows 構(gòu)建端到端的工作流在云中構(gòu)建全面的媒體工作流。 10Ingesting Assets in Bulk with the REST API 16Process Asset with the Media Services REST API 19Manage Assets with the Media Services REST API 22Deliver Assets with the Media Services REST API 24AWS Digital Media API 27什么是AWS 27AWS提供的功能: 27Digital Media on AWS 28應(yīng)用實例 31windows Azure什么是windows Azurewindows Azure是為了管理微軟建設(shè)的數(shù)據(jù)中心的服務(wù)器,網(wǎng)絡(luò)和存儲資源而開發(fā)的一款windows server 操作系統(tǒng)。在網(wǎng)站上,開發(fā)者可以瀏覽幫助文檔。內(nèi)容標識符的類型scheme: is a Media Services recognized naming scheme. 命名方案SSID:schemespecific ID , is a string that corresponds with IDs in scheme, default UUID, RFC 4122.type:EntityContent Identifier TypeAssetcidAccessPolicypidLocatorlidAssetFilecidContentKeykidJobTemplatejtidTaskTemplatettidJobjidTasktidMediaProcessormpidIngestManifestmidIngestManifestAssetmaidIngestManifestFilemfidConnect To Media Services Using the Media Services REST API連接到媒體服務(wù)的REST APIWindows Azure Access Control Service: ACS , create the access token.連接Media Services 需要兩樣?xùn)|西:An access token and the URI of Media Services .step1. Getting an access token獲得訪問令牌獲得令牌的HTTP請求POST ContentType: application/xformurlencodedHost: ContentLength: 120Expect: 100continueConnection: KeepAlivegrant_type=client_credentialsamp。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountnameamp。odata=verbose。)/Files}},ParentAssets:{__deferred:{uri:(39。XAspNetVersion: XPoweredBy: Date: Wed, 02 May 2012 00:59:30 GMT{d:{__metadata:{id:(39。nb%3Alid%3AUUID%3A8002bf3ca2154602b4a42aac367f709e39。odata=verboseAccept: application/json。Issuer=%3a%2f%%2famp。HMACSHA256=GxdBb%2fmEyN7iHdNxbawawHRftLhPFFqxX1JZckuv3hY%3dHost: ContentLength: 55Expect: 100continue{ Name : ExampleManifestREST_Asset, Options : 1 }3. Create the IngestManifestAssetsPOST ContentType: application/json。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=070500D0F35C4A5A9249485BBF4EC70Bamp。odata=verboseAccept: application/json。),uri:(39。HMACSHA256=RYXOraO6Z%2f7l9whWZQN%2bypeijgHwIk8XyikA01Kx1%2bk%3dHost: ContentLength: 249{Name : NewTestJob, InputMediaAssets : [{__metadata : {uri : (39。nb%3Ajid%3AUUID%3Ab21b1baf8cee734e9f1ab0f12b06e2d539。 HTTP/ContentType: application/json。HMACSHA256=dithjGvlXR9HlyAf5DE99N5OCYkPAxsHIcsTSjm9%2fVE%3dHost: ContentLength: 74Expect: 100continue{Name: DownloadPolicy, DurationInMinutes : 300, Permissions : 1}2. Querying entitiesHTTP GET 請求1. 獲得所有的MediaProcessor 實體GET ContentType: application/json。) HTTP/ContentType: application/json。) HTTP/ContentType: application/json。) HTTP/GET (39。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountnameamp。Issuer=%3a%2f%%2famp。nb%3Ajid%3AUUID%3Ab21b1baf8cee734e9f1ab0f12b06e2d539。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2f2005%2f05%2fidentity%2fclaims%2fnameidentifier=youraccountnameamp。odata=verbose。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。odata=verboseAccept: application/json。odata=verboseAccept: application/json。)/Asset}},Id:nb:lid:UUID:8002bf3ca2154602b4a42aac367f709e,ExpirationDateTime:\/Date(1335938672000)\/,Type:1,Path:,AccessPolicyId:nb:pid:UUID:94763883537a41c0a0974e3f755bbeab,AssetId:nb:cid:UUID:cab358e0deaa4c4f9a9f35687b54b0aa,StartTime:\/Date(1335920672000)\/}}Path 是上傳的URL