chunlei

chunlei

  • NA
  • 2
  • 0

can't play embedded youtube swf on some computers

Jun 26 2009 1:17 PM

I embedded a youtube video in my C# application like this :
string url = http://www.youtube.com/watch?v=x3r0ilu2Rzk;
StreamWriter sw = new StreamWriter("utube.html");
string PlayString = url.Trim().Replace("watch?v=", "v/");
string Finalplaycode = "<embed src=" + PlayString + "&hl=en&fs=1& type=application/x-shockwave-flash allowscriptaccess=always allowfullscreen=true width=425 height=344></embed>";
sw.Write(Finalplaycode);
sw.Close();
string PathToNavigate = Directory.GetParent(Application.ExecutablePath) + @"\utube.html";
webBrowser1.Navigate(PathToNavigate);
I can play it on my computer, but if I copy my dlls to someone else's computer, it won't work any more. It will only appears as a small red cross on the left top corner. We both have Adobe flash player installed. What is the problem?  Please help me.  Thank you!