How can i get the XHtml code in c#?
I'm loading the web page myweb.Source = new Uri(@"https://" + @urlstring.Text);
and i'm saving the html in string
WebClient a = new WebClient();
byte[] data = a.DownloadData(myweb.Source.ToString());
string ab = Encoding.ASCII.GetString(data);
now i'm looking for the video Url path
string id = "";
int index = ab.IndexOf("<video")
int indexe = ab.IndexOf("</video>");
for (int i = index; i <= indexe + 100; i++)
{
id += ab[i];
}
the result is
<video class="js-select-menu-off vjs-video"
data-account="3695997568001"
data-player="SyDW1dJDG"
data-embed="default"
data-video-id=""
controls></video>
<div class="playback-speed-popover popover dark">
<div class="inner-popover">
but what i want is this :
<video class="vjs-tech" data-account="3695997568001"
data-player="SyDW1dJDG" data-embed="default"
data-video-id="" id="vjs_video_3_html5_api"
poster="blablabla" src="https://hous......"></video>
how can i get the src from the web page ?