【正文】
piresOn=1334275521amp。odata=verboseAccept: application/json。ExpiresOn=1334275521amp。odata=verboseAccept: application/json。Audience=urn%3aWindowsAzureMediaServicesamp。odata=verboseAccept: application/json。Issuer=%3a%2f%%2famp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。nb%3Alid%3AUUID%3A81e5bd3246ad4d66b7b850008ee4aec539。)/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。),type:},AccessPolicy:{__deferred:{uri:(39。XAspNetVersion: XPoweredBy: Date: Wed, 02 May 2012 00:59:30 GMT{d:{__metadata:{id:(39。odata=verbose。Audience=urn%3aWindowsAzureMediaServicesamp。odata=verboseAccept: application/json。),uri:(39。nb%3Apid%3AUUID%3A94763883537a41c0a0974e3f755bbeab39。Issuer=%3a%2f%%2famp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。)/ParentAssets}},Id:nb:cid:UUID:aa5bfdd9900a431daea7fffb0b24f36b,State:0,Created:\/Date(1335566358610)\/,LastModified:\/Date(1335566358610)\/,AlternateId:null,Name:NewJSONAsset,Options:0}}2. Encrypt an Asset(Optional)3. Upload a file to blob storage上傳文件到存儲(chǔ) 傳文件到blob 存儲(chǔ),blob(binary large object)a. Set the AccessPolicy:設(shè)置asset的寫權(quán)限,DurationInMinutesb. retrieve a URL to upload the file to c. perform the actual upload actions。)/ContentKeys}},Files:{__deferred:{uri:(39。)/Publish}]}},Locators:{__deferred:{uri:(39。),uri:(39。nb%3Acid%3AUUID%3Aaa5bfdd9900a431daea7fffb0b24f36b39。Issuer=%3a%2f%%2famp。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。HMACSHA256=XQs5T%2fEfdO39%2f0Z9%2fBBkA12%2bbUUEY21YyefWXuRYZlY%3dHost: ContentLength: 27Expect: 100continue{ Name : NewJSONAsset }Ingest Assets with the media Services REST API。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。上傳,下載 Asset 的根URI是 ;創(chuàng)建一個(gè)Asset:POST ContentType: application/json。Audience=urn%3aWindowsAzureMediaServicesamp。 charset=utf8Expires: Fri, 13 Jan 2012 22:40:07 GMTLastModified: Fri, 13 Jan 2012 22:40:07 GMTVary: *Server: MicrosoftIIS/SetCookie: =w3mtu2rnxucaz5tvj0iyfm0t。client_secret=URLencoded client secret valueamp。DELETEDeletes an object刪除一個(gè)對(duì)象MERGEUpdates an existing object with named property changes.更新已經(jīng)存在對(duì)象的屬性HEADReturn metadata of an object for a GET response除了服務(wù)器不返回實(shí)體,HEAD和GET方法是一致的媒體服務(wù)支持的HTTP請(qǐng)求頭部(必選):HeaderTypeValueAuthorizationBeaerxmsversionDecimalDataServiceVersionDecimalMaxDataServiceVersionDecimal媒體服務(wù)支持的請(qǐng)求頭部(可選):HeaderTypeValueDateRFC 1123 dateTimestamp of the requestAcceptContent typeapplication/json。媒體服務(wù)為您提供向各種設(shè)備(Xbox, Windows PC, MacOS,iOS 和Android)交付內(nèi)容所需的一切。buildinghybrid workflows開發(fā)混合工作流 將媒體服務(wù)與您已使用的工具和流程集成。對(duì)于收費(fèi)方式,Azure Media Services是統(tǒng)一收費(fèi),每GB ,需更大容量就要額外付費(fèi)?!? 企業(yè)可以利用Azure Media Services將視頻傳到基于Windows、iOS、Android系統(tǒng)的掌上電腦、平板電腦、智能手機(jī)和游戲機(jī)等設(shè)備上?!? 微軟的Scott Guthrie稱,這項(xiàng)服務(wù)可以為企業(yè)員工提供培訓(xùn)視頻,網(wǎng)站的流視頻內(nèi)容,構(gòu)建Hulu(Netflix)一樣的視頻點(diǎn)播服務(wù)。Windows Azure 的媒體服務(wù) PaaS 產(chǎn)品/服務(wù)提供了從編碼到內(nèi)容保護(hù)再到流和分析的所有內(nèi)容。Azure及AWS媒體服務(wù)API調(diào)研高天龍 windows Azure 1什么是windows Azure 1windows Azure提供的功能 1媒體功能 2微軟Azure云計(jì)算流式視頻服務(wù)平臺(tái) 2媒體服務(wù)的應(yīng)用場(chǎng)景 3應(yīng)用實(shí)例 4Windows Azures Media Services REST API 5Setup for Media Services REST API Development 5Identify Windows Azure Media Services Entities 7Connect To Media Services Using the Media Services REST API 8Ingest Assets with the media Services REST API。媒體功能 支持插入(Ingest)、編碼(Encode)、保護(hù)(Protect)、流式(Stream)處理,在云中創(chuàng)建、管理和分發(fā)媒體。微軟憑借Windows Azure Media Services擴(kuò)展了云計(jì)算服務(wù),Windows Azure Media Services可以省去企業(yè)構(gòu)建流媒體點(diǎn)播視頻的麻煩。微軟的Azure Media Services不再需要提供和管理自定義的基礎(chǔ)設(shè)施,可以讓這個(gè)過程變得非常簡單。Guthrie表示,個(gè)人預(yù)覽版本支持實(shí)時(shí)流媒體,公共預(yù)覽版以后將陸續(xù)推出。功能包括上傳,存儲(chǔ),編碼,格式轉(zhuǎn)換,內(nèi)容保護(hù)和交付。providing cloud support for media player提供針對(duì)多臺(tái)設(shè)備和平臺(tái)的云支持跨多種設(shè)備創(chuàng)建,管理和交付媒體從未如此簡單。Windows Azures Media Services REST API名詞解釋:Media Services中的實(shí)體: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 entity that holds metadata about tasks作業(yè),可能含有多個(gè)任務(wù)TasksA task is an individual operation of work on an asset or file. A task is associated with a job.任務(wù)AccessPoliciesAn access policy defines the permissions to a file or an asset(what type of access, and the duration).定義了對(duì)文件或asset的訪問類型和時(shí)間限制LocatorsA locator is a URI that provides timebased access to a specific asset.是一個(gè)URI,能在一定時(shí)間范圍內(nèi)訪問某個(gè)asset.Job TemplatesA job template provides reusable settings for jobs that you want to run repeatedly. A job template is posed of a collection of task templates.作業(yè)模版ContentKeysA content key stores key data that used to encrypt an asset保存加密信息TaskTemplatesA task template provides reusable settings for tasks that you want to run job template has a collection of task templates.任務(wù)模版Setup for Media Services REST API DevelopmentMedia Services支持的HTTP方法:VerbDescription中文翻譯GETreturn the current value of object獲取有URI標(biāo)識(shí)的任何信息POSTCreate an object based on the data provided, or submits a mand創(chuàng)建一個(gè)對(duì)象或者執(zhí)行一條命令PUTreplaces an object, or creates a named object(when applicable).創(chuàng)建一個(gè)命名對(duì)象或者替換一個(gè)存在對(duì)象。client_id=client id valueamp。獲取AccessToken的HTTP 響應(yīng):HTTP/ 200 OKCacheControl: public, nostore, maxage=0ContentType: application/json。%3a%2f%%2faccesscontrolservice%2f2010%2f07%2fclaims%2fidentityprovider=%3a%2f%%2famp。HMACSHA256=hV1WF7sTe%2ffoHqzK%2ftmnwQY22NRPaDytcOOpC9Nv4DA%3d,token_type:,expires_in:3599,scope:urn:WindowsAzureMediaServices}Connecting to the Media Services URI訪問媒體服務(wù)的URI:Media Services 的根URI是 。urn%3aSubscriptionId=2f84471db1ae4e75aa09010f0fc0cf5bamp。Issuer=%3a%2f%%2famp。odata=verboseDataServiceVersion: MaxDataServiceVersion: xmsversion: Authorization: Bearer %3a%2f%%2fws%2