我尝试过使用WebBrowser,现在尝试使用Shockwave Flash工具,但我似乎无法使用任何一个。使用webbrowser我所做的就是:
webBrowser1.Url = new Uri("http://www.youtube.com/embed/" + dataGridView1.Rows[e.RowIndex].Cells[0].Value + "?autohide=0&autoplay=1&fs=0&rel=0");
也:
const string page = "<html><head><title></title></head><body>{0}</body></html>";
webBrowser1.DocumentText = string.Format(page, "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/" + dataGridView1.Rows[e.RowIndex].Cells[0].Value + "?autohide=0&autoplay=1&fs=0&rel=0\" frameborder=\"0\" allowfullscreen></iframe>");
PS。 dataGridView1是我拥有的视频网格,用户可以双击观看。
对于冲击波,我所做的只是:
axShockwaveFlash1.Movie = "http://www.youtube.com/v/" + dataGridView1.Rows[e.RowIndex].Cells[0].Value + "?autohide=0&autoplay=1&fs=0&rel=0";
并且在所有三种方法中我都得到了同样的错误。帮助