how to create a window in plugin layer starting one thread in onWindowAttached ,when this will be called

70 views Asked by At
bool DispatcherPlugin::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow* window)

when this will be called i am starting one thread in the function to dram the frames with open Gl

FB::PluginWindowWin* pluginWindowWin = dynamic_cast<FB::PluginWindowWin*>(window); 

by type casting window to FB::PluginWindowWin

How To Create FB::PluginWindow* window object so that i will start my thread by calling one function passing argument as FB::PluginWindow object

1

There are 1 answers

2
taxilian On

if you are using a modern version of Chrome then you can't get a plugin window -- you can only use it through nativemessaging which doesn't allow direct access to the browser window.

Your best bet would be to send the data to the page and draw in a canvas with javascript.

PluginWindow is legacy and only works on NPAPI and ActiveX; NPAPI is basically not supported by anything and ActiveX only works in IE these days.