0
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(videoInfoUrl);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
Stream responseStream = response.GetResponseStream();
StreamReader reader = new StreamReader(responseStream, Encoding.GetEncoding("utf-8"));
string videoInfo = HttpUtility.HtmlDecode(reader.ReadToEnd());
NameValueCollection videoParams = HttpUtility.ParseQueryString(videoInfo);
我的代碼:從HttpWebResponse response = await (HttpWebResponse)request.GetResponseAsync();
如何在通用應用中下載YouTube視頻?
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(videoInforUrl);
// HttpWebResponse response = await (HttpWebResponse)request.GetResponseAsync();
//Stream responseStream = response.GetResponseStream();
//StreamReader reader = new StreamReader(responseStream, Encoding.GetEncoding("utf-8"));
//string videoInfor=HttpUtility
我有問題顯示cannot convert httpwebresponse -> getresponseAsynce
。
普遍應用在HttpUtility
在您被起訴或從商店中移除您的應用程序時在此處添加評論。你過去幾年沒有讀過這個消息嗎? – Behrooz