firebreath

HTML display of Plugin and videotag

馋奶兔 提交于 2020-01-24 01:43:24
问题 I am facing a weird problem with html display.I have a html page that has both plugin object and video tag. Both are placed under the same area. Plugin area is 970x560 and video area is 320x240px. The plugin renders images which have a rectangular hole cut inside them to view the video(i.e., some part of images rendered have transparent pixels (alpha opaque=0 ) just to display the video). Now on launching of this html application in chrome, I am able to see only the video first frame and not

How to use JSCallback in Firebreath?

拥有回忆 提交于 2020-01-06 08:29:26
问题 I'd like to add an event handler in my C++ code. I followed document in firebreath.org (Callback from Scripts): FB::JSObjectPtr doc = m_host->getDOMDocument()->getJSObject(); doc->Invoke("addEventListener", FB::variant_list_of("load", FB::make_callback(this, &mine::foo))); but seeing following error: /home/dq/manager/mine.cpp: In member function ‘void mine::init()’: /home/dq/manager/mine.cpp:284:119: error: no matching function for call to ‘variant_list_of(const char [5], FB::JSAPIPtr)’ /home

firebreath plugin refresh after update

淺唱寂寞╮ 提交于 2020-01-06 07:23:05
问题 I want to reload a plugin after update without restarting browser. I tried the mac version, it works fine, howeve, I need to change the plugin name for each version. navigator.plugins.refresh(false); http://www.firebreath.org/display/documentation/Deploying+and+updating+your+plugin?focusedCommentId=8585308#comment-8585308 In windows, I tried those steps and I couldn't make it work. Has anyone had any luck with this? Does anyone know what could be wrong? "On Windows you even need to install it

Plugin Installation

独自空忆成欢 提交于 2020-01-06 07:14:45
问题 I wrote a plugin in Firebreath, and I have a msi written. I want to write a JavaScript function that will trigger an installation(a pop up in the top of the page) or will redirect the user to a download page. Can someone provide an example or a helpfull link? Thanks! 回答1: FireBreath has an example javascript file that can be used to help with plugin detection: https://github.com/firebreath/FireBreath/blob/master/Installer/js/fb_installer.js basically you use FireBreath.isPluginInstalled(

Does Firebreath support plugin updates in Internet Explorer once an instance is created without restarting?

故事扮演 提交于 2019-12-25 16:44:27
问题 Code snippet: navigator.plugins.refresh(false); var a = new ActiveXObject(collab.axName); if (a) { version = parseVersion(a.version); } I run something very similar to the above to check the version of my installed FB plugin. If it is out-of-date, I replace it with a newer version (Firebreath bog-standard Windows installer). However, if I run the snippet again, the newer version is not detected - the new ActiveX object has the old version number. The ActiveX object creation seems to be the

Does Firebreath support plugin updates in Internet Explorer once an instance is created without restarting?

一笑奈何 提交于 2019-12-25 16:43:04
问题 Code snippet: navigator.plugins.refresh(false); var a = new ActiveXObject(collab.axName); if (a) { version = parseVersion(a.version); } I run something very similar to the above to check the version of my installed FB plugin. If it is out-of-date, I replace it with a newer version (Firebreath bog-standard Windows installer). However, if I run the snippet again, the newer version is not detected - the new ActiveX object has the old version number. The ActiveX object creation seems to be the

How is an ActiveX wrapper created with FireBreath?

不羁岁月 提交于 2019-12-25 05:22:32
问题 I've been through the Windows and Mac video tutorials on the FireBreath (FB) website, through all the documentation and even seen the ActiveX example that a person has provided. It's been an entire week, but I still can't understand how to create a new project in FB. The only thing explained on the website is how to get the FB sln compiled, where the PluginTest example is already coded. Even for the ActiveX example, only the code is given. It isn't explained as to how they created the project

Need to add a NSDistributedNotification observer in my Firebreath project

南楼画角 提交于 2019-12-25 04:13:57
问题 I need to send a distributed notification from my cocoa app to my firebreath project, so I need to create an observer and a selector in my firebreath code. I changed the class extension to ".mm" in order to support objective-c code. I already have objective-c code in my firebreath project and is working ok. But when I try to create an observer I get errors in my code and I don't know how to resolve it. Here is my source code from firebreath project: //This is the selector - (void

how to start the javascript function in my firebreath plugin

狂风中的少年 提交于 2019-12-25 02:57:56
问题 I have implemented a javascript function in firebreath plugin file 'MyPluginProject.cpp' like void MyPluginProjectAPI::MyJsThings() { std::string argument = "my javascript functionality goes here"; m_host->evaluateJavaScript(argument); } Now to use the MyJsThings in my webpages I have created <object> for the plugin. Now I can call MyJsThings by calling it in my javascript code like below plugin.MyJsThings() This is the very basic thing. Now I don't want to call MyJsThings method in my

FBLOG_TRACE() No logging to Logfile — FBLOG_INFO() logging OK — What is the DIFFERENCE

微笑、不失礼 提交于 2019-12-24 08:19:08
问题 FIREBREATH 1.6 -- VC2010 -- No logging with FBLOG_TRACE("StaticInitialize()", "INIT-trace"); settings outMethods.push_back(std::make_pair(FB::Log::LogMethod_File, "U:/logs/PT.log")); ... FB::Log::LogLevel getLogLevel(){ return FB::Log::LogLevel_Trace; ... changing "FBLOG_TRACE" to "FBLOG_INFO" logging to Logfile works. I don´t understand the reason. 回答1: function not inserted in its respective area FB::Log::LogLevel getLogLevel(){ return FB::Log::LogLevel_Trace; // Now Trace and above is