北京大学软件与微电子学院1

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

1北京大学软件与微电子学院1UPnPStandardizedDCPs(DeviceControlProtocol)andApplicationslisuke@ss.pku.edu.cnLISuke北京大学软件与微电子学院2Content•UPnPMediaServerandMediaRenderer•UPnPRemoteClientandServer•UPnPWLANAccessPointDevice•UPnPApplicationsandCaseStudyPDF文件使用pdfFactoryPro试用版本创建学习重点•掌握完整的UPnPMediaServer,UPnPMediaRenderer以及UPnPDeviceControlPoint之间的交互过程•了解RemoteClientandServer和WLANAccessPointDevice•了解基于UPnP的一些研究和实际应用北京大学软件与微电子学院4DigitalHomeObjectives•Entertainment–Audio–Video•ShareDigitalContent•EasytousePDF文件使用pdfFactoryPro试用版本创建•Part1UPnPMediaServerandMediaRenderer北京大学软件与微电子学院6UPnPMediaServerandMediaRenderer•UPnPAVArchitecture•MediaServer•MediaRenderer•ControlPointPDF文件使用pdfFactoryPro试用版本创建•UPnPAVArchitecture北京大学软件与微电子学院8reference•UPnPAVArchitecture:0.83,•Aspecification,it’sgoalsis:–Tosupportarbitrarytransferprotocolsandcontentformats.–ToenabletheAVcontenttoflowdirectlybetweendeviceswithoutanyinterventionfromtheControlPoint.–ToenableControlPointstoremainindependentofanyparticulartransferprotocolandcontentformat.ThisallowsControlPointstotransparentlysupportnewprotocolsandformats.–Scalability,i.e.supportofdeviceswithverylowresources,especiallymemoryandprocessingpoweraswellasfull-featureddevices.北京大学软件与微电子学院10UPnPAVDeviceInteractionModelOut-of-Band:non-UPnP(“out-of-band”)communicationprotocol.PDF文件使用pdfFactoryPro试用版本创建简单应用场景(1)AVMediaServerIP网络北京大学软件与微电子学院12简单应用场景(2)AVMediaServerIP网络M-SEARCH搜索DeviceNotifyAdvertiseNotifyAdvertisePDF文件使用pdfFactoryPro试用版本创建简单应用场景(3)AVMediaServerIP网络在UPnPControlPoint上找到了媒体服务器和媒体显示设备北京大学软件与微电子学院14简单应用场景(4)AVMediaServerIP网络Browse()浏览媒体服务器的媒体信息请求PDF文件使用pdfFactoryPro试用版本创建简单应用场景(5)AVMediaServerIP网络得到媒体服务器的媒体信息包括媒体的格式北京大学软件与微电子学院16简单应用场景(6)AVMediaServerIP网络GetProtocolInfo()请求PDF文件使用pdfFactoryPro试用版本创建简单应用场景(7)AVMediaServerIP网络返回:MediaRenderer可以支持的文件格式北京大学软件与微电子学院18简单应用场景(8)AVMediaServerIP网络PrepareForConnection()informstheMediaServerandMediaRendererthatanoutgoing/incomingconnectionisabouttobemadeusingthespecifiedtransferprotocolanddataformatthatwaspreviouslyselected.PrepareForConnection()PDF文件使用pdfFactoryPro试用版本创建简单应用场景(9)AVMediaServerIP网络SetAVTransportURI()Play,Pause,Stop...北京大学软件与微电子学院20简单应用场景(10)AVMediaServerIP网络Out-of-BandDatatransportTransferProtocol:HTTP,RTSP,etc.PDF文件使用pdfFactoryPro试用版本创建•ExamplePlaybackScenarios北京大学软件与微电子学院22GeneralInteractionDiagramPDF文件使用pdfFactoryPro试用版本创建(IEC61883/IEEE1394)北京大学软件与微电子学院24Asynchronous-PullTransferProtocols(e.g.HTTPGET)PDF文件使用pdfFactoryPro试用版本创建()Action北京大学软件与微电子学院26RendererComboDeviceusingIsochronous-Push(e.g.IEEE-1394)PDF文件使用pdfFactoryPro试用版本创建(i.e.IEEE1394)北京大学软件与微电子学院30SimplestInteractionModelSupportedPDF文件使用pdfFactoryPro试用版本创建实现完整交互•第一步:发现设备,发送和接收SSDP数据包北京大学软件与微电子学院32•第二步:控制点向UPnPMediaServer发送browse请求,找到想要找的媒体文件PDF文件使用pdfFactoryPro试用版本创建()RequestPOST/_urn:schemas-upnp-org:service:ContentDirectory_controlHTTP/1.1HOST:127.0.0.1:53013SOAPACTION:urn:schemas-upnp-org:service:ContentDirectory:1#BrowseCONTENT-TYPE:text/xml;charset=utf-8Content-Length:534?xmlversion=1.0encoding=utf-8?s:Envelopes:encodingStyle=:s=:Bodyu:Browsexmlns:u=urn:schemas-upnp-org:service:ContentDirectory:1ObjectID0/ObjectIDBrowseFlagBrowseDirectChildren/BrowseFlagFilter*/FilterStartingIndex0/StartingIndexRequestedCount0/RequestedCountSortCriteria//u:Browse/s:Body/s:Envelope北京大学软件与微电子学院34Browse返回HTTP/1.1200OKEXT:CONTENT-TYPE:text/xml;charset=utf-8SERVER:WindowsNT/5.0,UPnP/1.0,IntelCLRSDK/1.0Content-Length:2198?xmlversion=1.0encoding=utf-8?s:Envelopes:encodingStyle=:s=:Bodyu:BrowseResponsexmlns:u=urn:schemas-upnp-org:service:ContentDirectory:1ResultDIDL-Litexmlns=urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/xmlns:dc=:upnp=urn:schemas-upnp-org:metadata-1-0/upnp/containerid=0000000000000001searchable=0parentID=0restricted=1childCount=0dc:titleAllImageItems/dc:titleupnp:classobject.container/upnp:classupnp:writeStatusUNKNOWN/upnp:writeStatus/containercontainerid=0000000000000002searchab

1 / 73
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功