コード例 #1
0
        public async Task <string> GetMetadataToId(string id)
        {
            var getMetadataRequest = MakeRawSoapRequest(_mediaServerDevice.ContentDirectoryControlUri, new XElement(URN_ContentDirectory + "Browse"),
                                                        new[]
            {
                "ObjectID", id,
                "BrowseFlag", "BrowseMetadata",
                "Filter", "",
                "StartingIndex", "0",
                "RequestedCount", "1",
                "SortCriteria", "",
            });
            IProgress <string> progress = new NullProgress();
            var getMetadataResponse     = await GetSoapAsync(getMetadataRequest);

            var metadata = getMetadataResponse.Element("Result").Value;

            return(metadata);
        }
コード例 #2
0
ファイル: AVTransport.cs プロジェクト: mam59/Xbmc2ndScr
 public AVTransport(MediaRendererDevice mediaRendererDevice)
 {
     _mediaRendererDevice = mediaRendererDevice;
     _progress            = new NullProgress();
 }