C# XAML/WPF WebBrowser Embeded Youtube

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üye
Katılım
10 Mar 2018
Mesajlar
36
Tepki puanı
1
Yaş
26
8 HİZMET YILI
Hello my problem with WerbBorser.DocumentText

here error :

WebBrowser does not contain a definition for 'DocumentText' and no accessible extension method 'DocumentText' accepting a first argument of type 'WebBrowser' could be found (are you missing a using directive or an assembly reference?

here code :

string _yUrl; public string VideoID { get { var yMatch = new Regex(@"http(?:s?)://(?:www\.)?youtu(?:be\.com/watch\?v=|\.be/)([\w\-]+)(&(amp;)?[\w\?=]*)?").Match(_yUrl); return yMatch.Success ? yMatch.Groups[1].Value : string.Empty; } } private void btnGo_Click(object sender, EventArgs e) { _yUrl = https://www.youtube.com/watch?v=cZ1Z0zZHktI; webBrowser.DocumentText = String.Format("<meta http-equiv='X-UA-Compatible' content='IE=Edge'/><iframe width='100%' height='315'" + " src='https://www.youtube.com/embed/{0}?autoplay=0' frameborder='0' allow='accelerometer;" + " encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>", VideoID); }
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst