How to integrate flash player into GeckoFX without xulrunner - c#

I am using C# Forms application that integrates GeckoFX browser to access web page. The web page is designed to use Flash.
I was able to integrate Flash driver into older version of GeckoFX (33.0) that is using xulrunner. The flash driver (NPSWF32.dll) is simply put into xulrunner\plugins directory and everything works fine.
However, I am not able to get the project run with recent versions of GeckoFX (eg. 45.x) that is not based on xulrunner. Is there any idea where should I put NPSWF32.dll?

Related

Google Chrome Extention in Blazor

As Blazor can run on client side via WebAssembly, can we develop/design Google Chrome extensions using Blazor?
I have developed a package to be able to build a Blazor WebAssembly application into a chrome extension.
Checkout the repo on GitHub for a step by step instruction how to convert your project to a Blazor chrome extension project.
Check out this Github repo that demonstrates a Hello World Chrome Extension written in Blazor. It has no interaction with Chrome APIs but does show how to package up a Blazor app as an extension.
https://github.com/traxium/webassembly-chrome-extension
You should be able to use Javascript Interop to call browser APIs, but I don't know of any way to call them directly. An open source project that mapped the browser APIs to C# would be ideal here.
Yup! We can develop/design Google Chrome extensions using Blazor-webassembly-app.
I'm building a chrome extension using asp.net 5.0 in blazor-webassembly-app.
I have faced so many difficulty till now and right now I am continuously facing difficulty its because no one in the world tried it yet and I am researching on it while building my POC (proof of concept).

How to Build a javascript interpreter For a custom made Browser?

I am working on my college project to build a Web Browser. I am Halfway through My Project and i came to know that WebBrowsers need javascript interpreters to Display latest websites.I am using c# language in Visual studio 2012. It Still Displays Some of the Basic Webpages but Doesn't Displays latest updated webpages like Google maps. I tried to suppress the error but doesn't help in other high end web pages. So how can i build a javascript interpreter and install it in my web browser.
Code I used to suppress the error
c# getCurrentBrowser().ScriptErrorsSuppressed = true;
The reason is that, you code is using the IE browser of your windows. IE often have incompatibilities. Try doing some research and inject a proper browser like chromium or gecko.
Look at this package

Suggestions for creating a windows XP-compatible browser?

For my internship, I need to create a customized browser that will host their web application and simulates it to be like a normal desktop app for the user.
I've already looked at a few possibilities to help me create a browser without having to write the engines myself and this resulted in creating small prototypes for Electron, CefSharp, and Geckofx, these last two were done in c# WinForms, where the default webbrowser control was replaced by a chromium engine and the firefox engine Gecko in the case of Geckofx).
These prototypes seemed to work perfectly with the site and looked very promising, however since making these demo's I got the requirement to support Windows XP as well. This requirement has complicated things because none of my already available options support Windows XP as of now.
Which brings me to my question, are there any packages like Cefsharp and Geckofx that are embedded into c# (via Visual Studio NuGet) and available to be used on Windows XP without breaking?
The webapp I'm creating this for fully supports internet explorer 11, Chrome version 50+, Firefox (don't know the first supported version) and Microsoft Edge.
It also seems to work with Opera version 36 (which is the last available version for XP) but I haven't found any kits that can help me create a browser-based on this.
Edit 18-01-19:
I was asked to also support Windows XP because the company I work for has a lot of customers that are hospitals. Apparently, they mostly use Windows XP to support the other programs they have installed on their desktops and as such I got the requirement to make my browser support XP as well.
It is also worth noting that the webapp I'm making this for, is currently used on a local environment and accessible via localhost in a browser. So the security concerns are not the main problem here as far as I'm aware of.
Edit 22-01-2018:
It seems that the current version of Geckofx (v45) is still able to work with Windows XP, it does, however, need the .Net framework 4.0 to work, so you'd have to downgrade to that version whilst developing. However, when I try this out I miss certain dependencies that make it impossible to use.
When reinstalling the NuGet version on .net framework 4.0 the references to Geckofx-core and geckofx-WinForms disappear, along with a few others that I haven't been able to pinpoint. Because of these lost dependencies, I'm unable to support XP with the Geckofx browser and I haven't found any good replacements for it.
The error I'm getting right now after "Xpcom.Intialize("Firefox"); is 'System.EntryPointNotFoundException: cannot find entry point with the name NS_Alloc in DLL xul' which causes the program being unable to start.

Origin of C# WebBrowser control

I am working on a C# application which uses an embedded WebBrowser control to display some HTML content. I want to test whether installing IE9 http://windows.microsoft.com/ie9 will effect my application.
The MSDN blog http://blogs.msdn.com/b/ie/archive/2008/03/18/webbrowser-control-rendering-modes-in-ie8.aspx states that the WebBrowser control defaults to IE7 rendering. However, I want to know what binary is actually being used to do the IE7 rendering.
I think the WebBrowser control could be packaged with:
the version of IE included with Windows (e.g. IE8 with Windows 7)
the newest version of IE installed in Windows (e.g. IE9)
the .NET runtime, my application uses .NET 2.0
Visual Studio, my application is built using VS2008
Which of these is correct?
The .net winforms webbrowser is just a wrapper for MSIE's own browser control (in shdocvw.dll). If you have IE8 installed, it uses IE8. If you have IE9 installed it uses IE9. For some silly reason they decided to have it fall back to IE7 rendering mode.
You can override that with a meta tag in the page header, or with a registry key. See MSIEs WebBrowser control hosted in winforms app runs in compatibility mode

Run Silverlight 3 standalone

So I have a small Silverlight application that plays a slideshow of pictures. What I want to do is burn the application to a cd and mail the cd to my mother so that she can run the silverlight application on her computer. I am using Silverlight 3. How do I create a standalone silverlight application/player?
What's New in Silverlight 3
Silverlight 3 Out of Browser Capabilities
The new out of browser experience in
Silverlight 3 enables users to place
their favorite Silverlight
applications directly onto their PC
and Mac, with links on the desktop and
start menu—all without the need to
download an additional runtime or
browser plug-in. Further, the new
experience enables Silverlight
applications to work whether the
computer is connected to the Internet
or not—a radical improvement to the
traditional Web experience.....
How to Create an Out of Browser Application.
Silverlight 3 as a Desktop Application
A few things come to mind:
Why can't your end-user just use the internet for that?
Any Silverlight app running on a machine would require Silverlight be installed.
Assuming the end-user has Silverlight installed, you can burn a copy of the Silverlight XAP + TestPage.html and have the end-user open up the HTML page. You might even create an autoplay file to do that once the CD is in the drive.
I'd also include the Silverlight install EXE on that disc and maybe fire it up with a silent install with the autoplay script.
OOB isn't what you're looking for.
OOB requires that the app be first viewed, then installed locally.
There OOB doesn't support "View me without installing me" mode.

Categories