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 and we both use IE. What is the problem?  Please help me.  Thank you!

解决方案 »

  1.   

        真厉害,能解析youtube的真实地址。你直接在别人的机器上用
    webBrowser1.Navigate("你机器上断点跟踪到得最终的swf地址"); //看看能否播放。
    不行的话叫他重装下Adobe flash player 9.0++,或者他的IE坏了。
      

  2.   

    好久没见到英语问题了,以前搜索问题,很多回答者用英文,有时几个人英文对话,好比传说中的:在中国的高档酒吧里,几个中国人用英文对话.... 
    部分术语中文有歧义的话,用个单词或者加个括弧就够了吧
    打错了好多字,嘿嘿,maybe i should use English too.