Currently, I am in the process of developing a web video player by using Firebreath to compile my C/C++ codec as a browser plugin. The plugin has been successfully loaded and is functioning properly (start, stop video, etc.). My next goal is to enable full-screen functionality which involves adjusting the width and height of the plugin object (among other things). However, I have encountered an issue with jQuery not being able to locate it.
This is how my HTML looks:
<div id="player0" class="playerUI ui-draggable">
<object id="plugin0" type="application/x-webplayer" style="width: 500px; height: 300px;">
</object><br>
</div>
I am attempting to dynamically resize the object element, but both:
jQuery("#plugin0")
and
document.getElementById("plugin0")
return null values []
.
When trying jQuery('object')
, I encounter a TypeError
.
Interestingly, if I try to manipulate player0
using jQuery, everything seems to be working smoothly. What could I be overlooking?
Appreciate any insights!