I'm struggling with a strange (Webkit-specific?) effect:
When changing the 'position' attribute of a plugin object, my plugin is deleted and immediately replaced by another freshly instanciated.
This means I'm losing all the state of the current plugin and start over with a new one.
I don't know if this is Webkit-specific, since my plugin will only run on our embedded platform.
Here's the code:
<object id="mypluginobject" type="video/myplugin" style="width=800px, height=600px">
In the javascript, I do this:
var myobject = $('mypluginobject');
myobject.style.width = '1280px'; // OK
myobject.style.height= '720px'; // OK
myobject.style.position='fixed'; // myobject disapears and is replaced by a new instance
In the NPAPI code, I can see the NPN_Destroy()
called, immediately followed by an NPN_New()
, all with the same NPP
pointer.
This makes me wonder why this 'position' attribute seem to trigger a complete replacement of my object.
What happens in real-life is that I loose all runtime information, the video stops, and I can't recover. I'm aware that my platform is quite exotic, so there might be side effects of all these:
- Webkit 322
- running on Qt 4.7.2
- and on DirectFB
Any idea?