Why doesn't my GeckoFX browser download videos?

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; } 
+4
source share
1 answer

Could you try the next line of code immediately after Xpcom.Initialize(".."); :

 Gecko.GeckoPreferences.Default["extensions.blocklist.enabled"] = false; 

It worked for me with GeckoFX18

+6
source

Source: https://habr.com/ru/post/1481377/


All Articles