I use C # + GeckoFX-18.0 (bitbucket.org/geckofx) to develop a web browser, but when I visit a page containing a video, it just doesnβt load the video - the video area remains black. I have Firefox 21.0 installed and downloading the video without any problems.
Note. Youtube videos not loading ...
My code is pretty simple:
private GeckoWebBrowser wb = null; // main form constructor public Form1() { InitializeComponent(); Xpcom.Initialize("C:\\mybrowser\\mybrowser\\xulrunner"); wb = new GeckoWebBrowser(); wb.Parent = this; wb.Dock = DockStyle.Fill; wb.Navigated += new EventHandler<GeckoNavigatedEventArgs>(browser_Navigated); } void browser_Navigated(object sender, GeckoNavigatedEventArgs e) { GeckoWebBrowser wb = (GeckoWebBrowser)sender; }
source share