jquery can't find firebreath object
I'm creating a web video player using Firebreath to compile my C/C++ codec
as a browser plugin. Now the plugin is loaded OK and works (start, stop
video etc.). The next step would be to implement full screen which would
require to change the width and height of the plugin object (plus other
stuff of course), but jQuery seems unable to find it.
This is my HTML:
<div id="player0" class="playerUI ui-draggable">
<object id="plugin0" type="application/x-webplayer" style="width:
500px; height: 300px;">
</object><br>
</div>
I would like to dynamically resize the object but when I try both
jQuery("#plugin0")
and
document.getElementById("#plugin0")
I get [] (null I would guess)
If I try jQuery('object') I get [TypeError]
On the other hand if I try to handle player0 with jQuery everything works
fine. What am I missing?
Thanks!
No comments:
Post a Comment